dagor.localize
module ‘dagor.localize’
Source files:
prog/gameLibs/quirrel/bindQuirrelEx/localization.cpp
Usage:
let { loc, getLocTextForLang, processHypenationsCN, processHypenationsJP, doesLocTextExist, getCurrentLanguage, getForceLanguage, setLanguageToSettings, loadLocalizationFromFile, getLangId, initLocalization } = require("dagor.localize")
or:
from "dagor.localize" import *
//'dagor.localize' exports:
{
pure function loc(key = null): string|null -> string
pure function getLocTextForLang(key = null, lang = null): string, string|null -> string
pure function processHypenationsCN(str = null): string -> string
pure function processHypenationsJP(str = null): string -> string
pure function doesLocTextExist(key = null): string -> bool
function getCurrentLanguage()
function getForceLanguage()
function setLanguageToSettings()
function loadLocalizationFromFile(filename, lang): string, string -> null
function getLangId()
function initLocalization(locBlk = null, curLang = null): instance, string -> null
}
- pure function loc(key = null)
- Arguments:
key (
string|null, optional())
typecheck mask: string or null- Returns:
string
- pure function getLocTextForLang(key = null, lang = null)
- Arguments:
key (
string, optional())lang (
string|null, optional())
typecheck mask: string, string or null- Returns:
string
- pure function processHypenationsCN(str = null)
- Arguments:
str (
string, optional())
typecheck mask: string- Returns:
string
- pure function processHypenationsJP(str = null)
- Arguments:
str (
string, optional())
typecheck mask: string- Returns:
string
- pure function doesLocTextExist(key = null)
- Arguments:
key (
string, optional())
typecheck mask: string- Returns:
bool
- function getCurrentLanguage()
- function getForceLanguage()
- function setLanguageToSettings()
- function loadLocalizationFromFile(filename, lang)
- Arguments:
filename (
string())lang (
string())
- Returns:
null
- function getLangId()
- function initLocalization(locBlk = null, curLang = null)
- Arguments:
locBlk (
instance, optional())curLang (
string, optional())
typecheck mask: class_instance, string- Returns:
null