$tr = new Translation2($driver, $dbinfo, $params);
//set English as the main language
$tr->setLang('en');
//set Italian as the first fallback language
$tr =& $tr->getDecorator('Lang');
$tr->setOption('fallbackLang', 'it');
//set Spanish as the second fallback language
$tr =& $tr->getDecorator('Lang');
$tr->setOption('fallbackLang', 'es'); |