mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
localization utiity methods
to better adress https://github.com/TorqueGameEngines/Torque3D/issues/1036
This commit is contained in:
parent
cf233367a8
commit
5e6a95866a
2 changed files with 38 additions and 1 deletions
|
|
@ -14,6 +14,14 @@
|
|||
|
||||
function UI::onCreate( %this )
|
||||
{
|
||||
exec("./scripts/utility");
|
||||
// create and set as core a defaultTable LanguageTable for localization purposes
|
||||
// example usage for quick language appending
|
||||
// addLanguage("defaultTable","check","ch");
|
||||
// addLanguage("defaultTable","try","tr");
|
||||
createLangTable("defaultTable");
|
||||
setCoreLangTable("defaultTable");
|
||||
exec("./langs/languageMap");
|
||||
}
|
||||
|
||||
function UI::onDestroy( %this )
|
||||
|
|
@ -81,7 +89,6 @@ function UI::initClient(%this)
|
|||
%this.queueExec("./scripts/messageBoxes");
|
||||
%this.queueExec("./scripts/help");
|
||||
%this.queueExec("./scripts/cursors");
|
||||
%this.queueExec("./scripts/utility");
|
||||
|
||||
if(isToolBuild())
|
||||
%this.queueExec("./tools/creator.tscript");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue