aimeos/ai-gettext

Aimeos Gettext extension

Maintainers

👁 aimeos

Package info

github.com/aimeos/ai-gettext

Homepage

Forum

Wiki

Type:aimeos-extension

pkg:composer/aimeos/ai-gettext

Statistics

Installs: 221 434

Dependents: 3

Suggesters: 0

Stars: 19

Open Issues: 0

2021.10.3 2022-01-27 07:49 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

LGPL-3.0-or-later 0b206282911d52df8f03de1f984aa8976e24c234

performanceextensiongettextaimeos

This package is auto-updated.

Last update: 2026-06-15 20:19:49 UTC


README

👁 Aimeos

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