YOURLS/includes/vendor/pomo/pomo
Léo Colombaro 4b3ca3f2bd Bump dependencies
- Upgrading composer/ca-bundle (1.3.1 => 1.3.4)
  - Upgrading geoip2/geoip2 (v2.12.2 => v2.13.0)
  - Upgrading ozh/bookmarkletgen (1.2 => 1.2.2)
  - Upgrading pomo/pomo (v1.4.1 => v1.5.0)
  - Upgrading rmccue/requests (2.0.2 => v2.0.5)
  - Upgrading spatie/array-to-xml (2.16.0 => 2.17.1)
  - Upgrading symfony/polyfill-intl-idn (v1.25.0 => v1.27.0)
  - Upgrading symfony/polyfill-intl-normalizer (v1.25.0 => v1.27.0)
  - Upgrading symfony/polyfill-mbstring (v1.25.0 => v1.27.0)
  - Upgrading symfony/polyfill-php72 (v1.25.0 => v1.27.0)
2023-01-07 18:36:41 +01:00
..
src Bump dependencies 2023-01-07 18:36:41 +01:00
README.md Bump dependencies 2023-01-07 18:36:41 +01:00

README.md

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.