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
Requires
- php: ~7.1||~8.0
- aimeos/aimeos-core: 2021.10.*
Requires (Dev)
- phpunit/phpunit: ~7.0||~8.0||~9.0
- dev-master
- 2022.01.x-dev
- 2021.10.x-dev
- 2021.10.3
- 2021.10.2
- 2021.10.1
- 2021.07.x-dev
- 2021.07.1
- 2021.04.x-dev
- 2021.04.1
- 2021.01.x-dev
- 2020.10.x-dev
- 2020.10.3
- 2020.10.2
- 2020.10.1
- 2020.07.x-dev
- 2020.07.1
- 2020.04.x-dev
- 2020.04.1
- 2020.01.x-dev
- 2020.01.1
- 2019.10.x-dev
- 2019.10.1
- 2019.07.x-dev
- 2019.07.1
- 2019.04.x-dev
- 2019.04.2
- 2019.04.1
- 2019.01.x-dev
- 2019.01.1
- 2018.10.x-dev
- 2018.10.4
- 2018.10.3
- 2018.10.2
- 2018.10.1
- 2018.07.x-dev
- 2018.07.2
- 2018.07.1
- 2018.04.x-dev
- 2018.04.3
- 2018.04.2
- 2018.04.1
- 2018.01.x-dev
- 2018.01.2
- 2018.01.1
- 2017.10.x-dev
- 2017.10.1
- 2017.07.x-dev
- 2017.07.2
- 2017.07.1
- 2017.04.x-dev
- 2017.04.1
- 2017.03.x-dev
- 2017.02.x-dev
- 2017.01.x-dev
- 2017.01.2
- 2017.01.1
- 2016.10.x-dev
- 2016.10.1
- 2016.07.x-dev
- 2016.07.2
- 2016.07.1
- 2016.04.x-dev
- 2016.04.1
- 2016.01.x-dev
- 2016.01.1
This package is auto-updated.
Last update: 2024-12-15 17:20:57 UTC
README
Aimeos Gettext extension
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.