Change all function L10n calls to one underscore, test updates
That change is done to be compatible with the phpmyadmin translator class so this can be a drop in replacement or other way around. Update smarty block.t to only check for _* functions and not any pre loaded language class
This commit is contained in:
@@ -74,7 +74,7 @@ $smarty->setSmartyPaths();
|
||||
// smarty test
|
||||
$smarty->DATA['SMARTY_TEST'] = 'Test Data';
|
||||
$smarty->DATA['TRANSLATE_TEST'] = $l10n->__('Are we translated?');
|
||||
$smarty->DATA['TRANSLATE_TEST_FUNCTION'] = __gettext('Are we translated?');
|
||||
$smarty->DATA['TRANSLATE_TEST_FUNCTION'] = _gettext('Are we translated?');
|
||||
$smarty->DATA['TRANSLATE_TEST_SMARTY'] = $smarty->l10n->__('Are we translated?');
|
||||
$smarty->DATA['replace'] = 'Replaced';
|
||||
// variable variables
|
||||
|
||||
Reference in New Issue
Block a user