hi 
in module.config.php :
...
    'translator' => array(
        'locale' => 'fa_IR',
        'translation_file_patterns' => array(
            array(
                'type'     => 'gettext',
                'base_dir' => __DIR__ . '/../language',
                'pattern'  => '%s.mo',
            ),
        ),
    ), 
..

how do i translate a word in my controller
---
class IndexController extends AbstractActionController
{
    public function indexAction()
    {
        $string_translated = 
$this->getServiceLocator()->get('translator')->translate('Home');
    }

how?



--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/translate-a-word-in-controller-of-my-module-tp4662126.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to