dagor.localize

module ‘dagor.localize’

Source file: prog/gameLibs/quirrel/bindQuirrelEx/localization.cpp

Usage:

let { loc, getLocTextForLang, processHypenationsCN, processHypenationsJP, doesLocTextExist, getCurrentLanguage, getForceLanguage, setLanguageToSettings, initLocalization } = require("dagor.localize")

or:

from "dagor.localize" import *
//'dagor.localize' exports:
{
  function loc(arg0, ...): string or null, any_type -> _undocumented_
  function getLocTextForLang(arg0, arg1, ...): string, string or null, any_type -> _undocumented_
  function processHypenationsCN(arg0): string -> _undocumented_
  function processHypenationsJP(arg0): string -> _undocumented_
  function doesLocTextExist(arg0): string -> _undocumented_
  function getCurrentLanguage()
  function getForceLanguage()
  function setLanguageToSettings()
  function initLocalization(arg0, arg1, ...): class_instance, string, any_type -> _undocumented_
}
function loc(arg0, ...)
Arguments:
  • arg0 (string or null()) – autodoc from typemask/paramscheck

  • ... (any_type()) – this function accepts unlimited arguments

nparamscheck:-2

typecheck mask: any_type, string or null

function getLocTextForLang(arg0, arg1, ...)
Arguments:
  • arg0 (string()) – autodoc from typemask/paramscheck

  • arg1 (string or null()) – autodoc from typemask/paramscheck

  • ... (any_type()) – this function accepts unlimited arguments

nparamscheck:-3

typecheck mask: any_type, string, string or null

function processHypenationsCN(arg0)
Arguments:
  • arg0 (string()) – autodoc from typemask/paramscheck

nparamscheck:2

typecheck mask: any_type, string

function processHypenationsJP(arg0)
Arguments:
  • arg0 (string()) – autodoc from typemask/paramscheck

nparamscheck:2

typecheck mask: any_type, string

function doesLocTextExist(arg0)
Arguments:
  • arg0 (string()) – autodoc from typemask/paramscheck

nparamscheck:2

typecheck mask: any_type, string

function getCurrentLanguage()
function getForceLanguage()
function setLanguageToSettings()
function initLocalization(arg0, arg1, ...)
Arguments:
  • arg0 (class_instance()) – autodoc from typemask/paramscheck

  • arg1 (string()) – autodoc from typemask/paramscheck

  • ... (any_type()) – this function accepts unlimited arguments

nparamscheck:-2

typecheck mask: any_type, class_instance, string

/;

module_mgr->addNativeModule(“dagor.localize”, exports);

}

} // namespace bindquirrel