aimeos/ai-gettext
Aimeos Gettext extension
Maintainers
Package info
Type:aimeos-extension
pkg:composer/aimeos/ai-gettext
Requires
- php: ~7.1||~8.0
- aimeos/aimeos-core: 2021.10.*
Requires (Dev)
- phpunit/phpunit: ~7.0||~8.0||~9.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
LGPL-3.0-or-later 0b206282911d52df8f03de1f984aa8976e24c234
This package is auto-updated.
Last update: 2026-06-15 20:19:49 UTC
README
👁 AimeosAimeos 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.
