pomo/pomo

Gettext library to translate with I18n

Installs: 245

Dependents: 1

Stars: 1

Watchers: 1

Language: PHP

v1.3.0-beta 2014-07-22 20:42 UTC

README

Latest Release Build Status Code Climate

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.
Create the following composer.json file and run the php composer.phar install command to install it.

{
    "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.