php - how create to language switcher in zf2 -


how create language switcher in application? use zend framework 2.

index.phtml:

<?php echo $this->translate('users') ?> 

module.config.php:

'translator' => array(         'locale' => 'pl_pl',         'translation_file_patterns' => array(             array(                 'type'     => 'gettext',                 'base_dir' => __dir__ . '/../language',                 'pattern'  => '%s.mo',             ),         ),     ), 

i have pl_pl.mo , works how add switcher?


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -