This is my code
$locale = new Zend_Locale('en_US');
Zend_Registry::set('Zend_Locale', $locale);
$GLOBALS['translate'] = new Zend_Translate(
array(
'adapter' => 'array',
'content' => array('Hello' => 'Hi'),
'locale' => 'en_US'
)
);
gb('translate')->addTranslation(
array(
'content' => array('Hello' => 'Xin chào'),
'locale' => 'vi'
)
);
gb('translate')->_('Hello'); //always print Xin chào
It's always print 'Xin chào' even I use web proxy (from US) to request page.