Todo List
Translation2 | --Translation2_Decorator | --Translation2_Admin_Decorator | --Translation2_Admin_Decorator_Autoadd
This Decorator will add strings to a language when a request for them to be translated happens. The 'autoaddlang' option must be set to the language the strings will be added as.
Example:
$tr =& Translation2_Admin::factory(...); $tr->setLang('en'); $tr =& $tr->getAdminDecorator('Autoadd'); $tr->setOption('autoaddlang', 'en'); ... $tr->get('Entirely new string', 'samplePage', 'de');
'Entirely new string' will be added to the English language table.
[line 79]
void get( $stringID, [ $pageID = TRANSLATION2_DEFAULT_PAGEID], [ $langID = null])