2017 © Pedro Peláez
 

aimeos-extension ai-zend2-i18n

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

image

aimeos/ai-zend2-i18n

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

  • Wednesday, July 4, 2018
  • by aimeos
  • Repository
  • 2 Watchers
  • 1 Stars
  • 5,753 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 40 Versions
  • 0 % Grown

The README.md

Aimeos logo , (*1)

Aimeos Zend2 I18n adapter

Build Status Coverage Status Scrutinizer Code Quality License, (*2)

The Aimeos web shop components can integrate into almost any PHP application and uses the infrastructure of the application for building URLs, caching content, configuration settings, logging messages, session handling, sending e-mails or handling translations., (*3)

The ai-zend2-i18n extension integrates the Zend I18n component for translating messages into Aimeos. It's useful if the Aimeos translations should be available in your application., (*4)

Table of content

Installation

To allow the Aimeos web shop components to retrive translations for the used strings, you have to install the adapter first. 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:, (*5)

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

Add the ai-zend2-i18n extension to the "require" section of your composer.json file:, (*6)

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

If you don't want to use the latest version, you can also install any release. The list of releases is available at Packagist. Afterwards you only need to execute the composer update command on the command line:, (*7)

composer update

Setup

Now add the Zend I18n object to the Aimeos context, which you have to create to get the Aimeos components running:, (*8)

$i18nPaths = $aimeos->getI18nPaths();
$i18n = new \MW_Translation_Zend2( $i18nPaths, 'gettext', 'en', array( 'disableNotices' => true ) );
$context->setI18n( array( 'en' => $i18n );

The $aimeos object is an instance of the Aimeos class from the core. The code above would only set up the translation for English but you can also set up several languages at once and pass them in the array to the setI18n() method., (*9)

To speed up retrieving translated strings, you can wrap the translation object into the APC decorator before adding it to the context:, (*10)

if( function_exists( 'apc_store' ) === true ) {
    $i18n = new \MW_Translation_Decorator_APC( $i18n, 'myApcPrefix:' ) );
}

This would use the shared memory of the web server to store and retrieve the strings from there instead of the binary gettext "mo" files., (*11)

To overwrite translations by local ones you can furthermore added them on top:, (*12)

    $i18n = new \MW_Translation_Decorator_Memory( $i18n, array( /*...*/ ) );

All translations from the second parameter would be used instead of the ones from the gettext files. The format of the translations must be:, (*13)

'<translation domain>' => array(
    '<original singular>' => array('<singular translation>','<plural translation>'),
),
'client/html' => array(
    'address' => array('Address','Addresses'),
),

License

The Aimeos ai-zend2-i18n extension is licensed under the terms of the LGPLv3 license and is available for free., (*14)

The Versions

04/07 2018

2018.07.x-dev

2018.07.9999999.9999999-dev https://aimeos.org/

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

  Sources   Download

LGPL-3.0-or-later

The Requires

 

zend i18n shop e-commerce translate adapter aimeos

04/07 2018

2018.07.1

2018.07.1.0 https://aimeos.org/

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

  Sources   Download

LGPL-3.0-or-later

The Requires

 

zend i18n shop e-commerce translate adapter aimeos

04/04 2018

2018.04.x-dev

2018.04.9999999.9999999-dev https://aimeos.org/

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

  Sources   Download

LGPL-3.0-or-later

The Requires

 

zend i18n shop e-commerce translate adapter aimeos

04/04 2018

2018.04.1

2018.04.1.0 https://aimeos.org/

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

  Sources   Download

LGPL-3.0-or-later

The Requires

 

zend i18n shop e-commerce translate adapter aimeos

18/01 2018

2017.10.x-dev

2017.10.9999999.9999999-dev https://aimeos.org/

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

  Sources   Download

LGPL-3.0 LGPL-3.0-or-later

The Requires

 

zend i18n shop e-commerce translate adapter aimeos

18/01 2018

2018.01.x-dev

2018.01.9999999.9999999-dev https://aimeos.org/

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

  Sources   Download

LGPL-3.0 LGPL-3.0-or-later

The Requires

 

zend i18n shop e-commerce translate adapter aimeos

18/01 2018

dev-master

9999999-dev https://aimeos.org/

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

  Sources   Download

LGPL-3.0 LGPL-3.0-or-later

The Requires

 

zend i18n shop e-commerce translate adapter aimeos

03/01 2018

2018.01.2

2018.01.2.0 https://aimeos.org/

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

  Sources   Download

LGPL-3.0

The Requires

 

zend i18n shop e-commerce translate adapter aimeos

03/12 2017

2018.01.1

2018.01.1.0 https://aimeos.org/

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

  Sources   Download

LGPL-3.0

The Requires

 

zend i18n shop e-commerce translate adapter aimeos

05/10 2017

2017.10.1

2017.10.1.0 https://aimeos.org/

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

  Sources   Download

LGPL-3.0

The Requires

 

zend i18n shop e-commerce translate adapter aimeos

03/07 2017

2017.07.x-dev

2017.07.9999999.9999999-dev https://aimeos.org/

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

  Sources   Download

LGPL-3.0

The Requires

 

zend i18n shop e-commerce translate adapter aimeos

03/07 2017

2017.07.2

2017.07.2.0 https://aimeos.org/

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

  Sources   Download

LGPL-3.0

The Requires

 

zend i18n shop e-commerce translate adapter aimeos

31/05 2017

2017.07.1

2017.07.1.0 https://aimeos.org/

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

  Sources   Download

LGPL-3.0

The Requires

 

zend i18n shop e-commerce translate adapter aimeos

21/04 2017

2017.04.x-dev

2017.04.9999999.9999999-dev https://aimeos.org/

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

  Sources   Download

LGPL-3.0

The Requires

 

zend i18n shop e-commerce translate adapter aimeos

06/04 2017

2017.04.1

2017.04.1.0 https://aimeos.org/

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

  Sources   Download

LGPL-3.0

The Requires

 

zend i18n shop e-commerce translate adapter aimeos

06/03 2017

2017.03.x-dev

2017.03.9999999.9999999-dev https://aimeos.org/

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

  Sources   Download

LGPL-3.0

The Requires

 

zend i18n shop e-commerce translate adapter aimeos

07/02 2017

2017.02.x-dev

2017.02.9999999.9999999-dev https://aimeos.org/

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

  Sources   Download

LGPL-3.0

The Requires

 

zend i18n shop e-commerce translate adapter aimeos

10/01 2017

2017.01.x-dev

2017.01.9999999.9999999-dev https://aimeos.org/

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

  Sources   Download

LGPL-3.0

The Requires

 

zend i18n shop e-commerce translate adapter aimeos

10/01 2017

2017.01.2

2017.01.2.0 https://aimeos.org/

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

  Sources   Download

LGPL-3.0

The Requires

 

zend i18n shop e-commerce translate adapter aimeos

17/12 2016

2017.01.1

2017.01.1.0 https://aimeos.org/

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

  Sources   Download

LGPL-3.0

The Requires

 

zend i18n shop e-commerce translate adapter aimeos

07/12 2016

2016.10.x-dev

2016.10.9999999.9999999-dev https://aimeos.org/

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

  Sources   Download

LGPL-3.0

The Requires

 

zend i18n shop e-commerce translate adapter aimeos

04/10 2016

2016.10.1

2016.10.1.0 https://aimeos.org/

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

  Sources   Download

LGPL-3.0

The Requires

 

zend i18n shop e-commerce translate adapter aimeos

12/07 2016

2016.07.x-dev

2016.07.9999999.9999999-dev https://aimeos.org/

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

  Sources   Download

LGPL-3.0

The Requires

 

zend i18n shop e-commerce translate adapter aimeos

12/07 2016

2016.07.2

2016.07.2.0 https://aimeos.org/

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

  Sources   Download

LGPL-3.0

The Requires

 

zend i18n shop e-commerce translate adapter aimeos

24/06 2016

2016.07.1

2016.07.1.0 https://aimeos.org/

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

  Sources   Download

LGPL-3.0

The Requires

 

zend i18n shop e-commerce translate adapter aimeos

23/03 2016

2015.10.x-dev

2015.10.9999999.9999999-dev https://aimeos.org

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

  Sources   Download

LGPL-3.0

The Requires

 

zend i18n shop e-commerce translate adapter aimeos

23/03 2016

2015.10.3

2015.10.3.0 https://aimeos.org

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

  Sources   Download

LGPL-3.0

The Requires

 

zend i18n shop e-commerce translate adapter aimeos

28/01 2016

2016.01.x-dev

2016.01.9999999.9999999-dev https://aimeos.org

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

  Sources   Download

LGPL-3.0

The Requires

 

zend i18n shop e-commerce translate adapter aimeos

28/01 2016

2016.01.2

2016.01.2.0 https://aimeos.org

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

  Sources   Download

LGPL-3.0

The Requires

 

zend i18n shop e-commerce translate adapter aimeos

21/01 2016

2016.04.x-dev

2016.04.9999999.9999999-dev https://aimeos.org

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

  Sources   Download

LGPL-3.0

The Requires

 

zend i18n shop e-commerce translate adapter aimeos

21/01 2016

2016.04.1

2016.04.1.0 https://aimeos.org

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

  Sources   Download

LGPL-3.0

The Requires

 

zend i18n shop e-commerce translate adapter aimeos

20/10 2015

2015.10.2

2015.10.2.0 https://aimeos.org

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

  Sources   Download

LGPL-3.0

The Requires

 

zend i18n shop e-commerce translate adapter aimeos

20/10 2015

2016.01.1

2016.01.1.0 https://aimeos.org

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

  Sources   Download

LGPL-3.0

The Requires

 

zend i18n shop e-commerce translate adapter aimeos

30/09 2015

2015.10.1

2015.10.1.0 https://aimeos.org

Zend Framework 2 adapter for Aimeos web shops and e-commerce solutions

  Sources   Download

LGPL-3.0

The Requires

 

zend i18n shop e-commerce translate adapter aimeos

20/07 2015

2015.07.x-dev

2015.07.9999999.9999999-dev https://aimeos.org

Aimeos Zend Framework 2 translation extension

  Sources   Download

LGPL-3.0

The Requires

 

zend i18n translate adapter aimeos

20/07 2015

2015.07.1

2015.07.1.0 https://aimeos.org

Aimeos Zend Framework 2 translation extension

  Sources   Download

LGPL-3.0

The Requires

 

zend i18n translate adapter aimeos

11/07 2015

2015.03.x-dev

2015.03.9999999.9999999-dev https://aimeos.org

Aimeos Zend Framework 2 translation extension

  Sources   Download

LGPL-3.0

The Requires

 

zend i18n translate adapter aimeos

16/06 2015

2015.03.1

2015.03.1.0 http://aimeos.org

Aimeos Zend Framework 2 translation extension

  Sources   Download

LGPL-3.0

The Requires

 

zend i18n translate adapter aimeos

11/03 2015

2015.03.0

2015.03.0.0 http://aimeos.org

Aimeos Zend Framework 2 translation extension

  Sources   Download

LGPL-3.0

The Requires

 

zend i18n translate adapter aimeos

02/12 2014

2014.x-dev

2014.9999999.9999999.9999999-dev http://aimeos.org

Aimeos Zend Framework 2 translation extension

  Sources   Download

LGPL-3.0

The Requires

 

zend i18n translate adapter aimeos