Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Extensions internationalization
TothAmon
New
i would like to porpose this ida to all extension writers
$extDir = 'MY_EXTENSION';
$XMLLang = $Context->GetDefinition('XMLLang');
if (file_exists($Configuration['EXTENSIONS_PATH'].$extDir."/languages/{$XMLLang}.php"))
require_once($Configuration['EXTENSIONS_PATH'].$extDir."/languages/{$XMLLang}.php");
else
require_once($Configuration['EXTENSIONS_PATH'].$extDir.'/languages/en.php');
now you only need to provide en.php under languages directory of your extension.
U can write in it all text that goes into Dictionary and Definition
also if You build config form with SetList you could write translated file (beside orginal one named SetList.ini) with format SetList_LANGHERE.ini - if only my idea will be implemented in this extension - see here:
http://lussumo.com/community/discussion/8169/set-list/#Item_15
0
This discussion has been closed.
Comments