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

TothAmonTothAmon New
edited October 2008 in Vanilla 1.0 Help
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:


  • Options
    It is probably better to keep this proposition in the following discussion: (Lussumo community in other languages # 1) (LanguageSelector # 1)
  • Options
    Thanks for info, i read both posts. Also sorry for being too hasty and not checking first. If any mod/admin could move my post before post thread ... thanks :)
This discussion has been closed.