Hi, I'm trying to log some units' names: Code: var sid : String = "guardcavalrysax"; var unitName : String; _misc_GetUnitNameBySID(sid, unitName); Log(unitName); // or just Log(GetLocaleTableListItemByID('units', sid)) but some units ids have no plain translation but reuse other keys using include command, e.g.: Code: @guardcavalrysax %include(units;cavalryguard)% ... @reiter Rajtar then what in the log file I see: instead of translated text. Is there a way to resolve these inclusions and get final text? Thanks in advance
I know, I use them above but for some some keys (e.g. "guardcavalrysax") it doesn't give me proper translation because in translation file there is no plain "Saxony Cavalary guard" but "%include(units;cavalryguard)%" (some reference to other key). For keys having plain translation (e.g. for "reiter") it works.
Well you could harcode your changes in yourself Either you use an include macro or you just write it out lul
Looks like all the %includes are eventually resolved after game has fully initialized. I was logging the translations too early( upon game start) and early logs are broken but later are fine.