Zf2 translator

For programming and general questions on Zend Framework

Zf2 translator

Postby palz4200 on Sun Aug 27, 2017 8:38 am

How to use zf2 translator in Model layer??

Module.config
'service_manager' => array(
'abstract_factories' => array(
'Zend\Cache\Service\StorageCacheAbstractServiceFactory',
'Zend\Log\LoggerAbstractServiceFactory',
),
'factories' => array(
'translator' => 'Zend\Mvc\Service\TranslatorServiceFactory'
),
),
'translator' => array(
'locale' => 'en_US',
'translation_file_patterns' => array(
array(
'type' => 'gettext',
'base_dir' => __DIR__ . '/../language',
'pattern' => '%smo'
),
)
),
palz4200
 
Posts: 1
Joined: Sun Aug 27, 2017 8:35 am

Return to Zend Framework

Who is online

Users browsing this forum: No registered users and 2 guests