Gettext emulation in PHP
This library provides PHP functions to read MO files even when gettext is not compiled in or when appropriate locale is not present on the system.
All credits belongs to official authors, take a look at launchpad.net/php-gettext
Info
- Supported PHP: 5.6 - 8.0
- Official project: https://launchpad.net/php-gettext
Installation
To install this library use Composer.
composer require f00b4r/php-gettext
Usage
$streamer = new CachedFileReader(__DIR__ . '/messages.mo');
$gettext = new gettext_reader($streamer);
Development
See how to contribute to this package.
This package is currently maintaining by these authors.
Consider to support f3l1x. Also thank you for using this package.