How to translate options in additional fields and text added with customizations

From aMember Pro Documentation
Revision as of 03:38, 9 August 2013 by Caesar (talk | contribs)
Jump to: navigation, search

Add this code to site.php file:

//set up array of translataions
$translations_ru = array(
    'one' => 'Один',
    'two' => 'Два'

//retrieve global translate object
$tr = Zend_Registry::get('Zend_Translate');
$locale = $tr->getLocale(); //save current active locale to temporary variable

//add your new translations
    'adapter' => 'array',
    'content' => $translations_ru,
    'locale' => 'ru_RU',

//restore locale to previous state