Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 482 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 482 Bytes

Simple translation controller plugin

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');