mikica/zf2-translate-plugin

Simple translation controller plugin.

2.01 2018-07-13 20:43 UTC

This package is auto-updated.

Last update: 2024-10-27 03:57:34 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');