mikica / zf2-translate-plugin
Simple translation controller plugin.
Installs: 2 256
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 2
Forks: 1
Open Issues: 0
Type:plugin
Requires
- php: >=5.6
- zendframework/zend-i18n: ^2.6
- zendframework/zend-mvc: ^3.0
This package is auto-updated.
Last update: 2024-11-27 04:13:35 UTC
README
Installation Zend 3
composer require mikica/zf2-translate-plugin
Installation Zend 2
composer require mikica/zf2-translate-plugin "^1.0"
You need to register new module. Add in file config/application.config.php:
'modules' => array(
'...',
'ZfTranslate'
),
The module is ready to use.
Usage in controller
<?php $this->translate('translate word'); $this->translate('translate word', 'locale');