aimeos/ai-gettext

Aimeos Gettext extension

Installs: 218 521

Dependents: 3

Suggesters: 0

Security: 0

Stars: 20

Watchers: 4

Forks: 5

Open Issues: 0

Type:aimeos-extension


README

Aimeos logo

Aimeos Gettext extension

Build Status Coverage Status Scrutinizer Code Quality License

The Aimeos Gettext extension contains a low resource implementation for reading Gettext MO files and a translation adapter for Aimeos.

Table of contents

Installation

As every Aimeos extension, the easiest way is to install it via composer. If you don't have composer installed yet, you can execute this string on the command line to download it:

php -r "readfile('https://getcomposer.org/installer');" | php -- --filename=composer

Add the Gettext extension name to the "require" section of your composer.json (or your composer.aimeos.json, depending on what is available) file:

"require": [
    "aimeos/ai-gettext": "dev-master",
    ...
],

Afterwards you only need to execute the composer update command on the command line:

composer update

These commands will install the Aimeos extension into the extension directory and it will be available immediately.

Usage

The Aimeos Gettext adapter is useful for developers writing integrations for applications or frameworks. It's an alternative for the translation objects stored in the Aimeos context. You can instantiate the translation object via

$i18n = new \Aimeos\MW\Translation\Gettext( array(<i18n directories>), <locale> );

License

The Aimeos gettext extension is licensed under the terms of the LGPLv3 Open Source license and is available for free.

Links