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.
Options

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: http://lussumo.com/community/discussion/8169/set-list/#Item_15

Comments

  • Options
    It is probably better to keep this proposition in the following discussion: http://lussumo.com/community/?CommentID=62026 (Lussumo community in other languages # 1) http://lussumo.com/community/?CommentID=60270 (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 http://lussumo.com/community/discussion/5805/lussumo-community-in-other-languages/#Item_21 thread ... thanks :)
This discussion has been closed.