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
Post a Comment