pomo / pomo
Gettext library to translate with I18n
Fund package maintenance!
LeoColomb] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g.
[user1
user2
Patreon
Installs: 15 861
Dependents: 2
Suggesters: 0
Security: 0
Stars: 8
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: >=5.3.0
Requires (Dev)
- phpunit/phpunit: >=4.0
- squizlabs/php_codesniffer: ^3.0 || ^2.9.1
README
Gettext library to translate with I18n.
Why use it.
Usage
<?php use POMO\MO; // Create MO object $translations = new MO(); // Import MO file $translations->import_from_file($the_mo_filepath); // Translate $translations->translate($text);
Installation
The easiest way to install POMO is via composer.
composer require pomo/pomo
<?php require 'vendor/autoload.php'; use POMO\MO; ...
Requirements
POMO works with PHP 5.3 or above.
License
POMO is licensed under the GPLv2 License.