LeoColomb / pomo

Gettext library to translate with I18n

Home Page:https://colombaro.fr/pomo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

POMO

Gettext library to translate with i18n

Latest Release

About

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.

About

Gettext library to translate with I18n

https://colombaro.fr/pomo/

License:GNU General Public License v2.0


Languages

Language:PHP 100.0%