You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lawremi edited this page May 21, 2014
·
2 revisions
COG supports localization of strings visible in the configuration GUI. At some point, we may also support translation of strings in the console debugging interface, but that is deferred for now. If a localized entry is not found for a key, the value in the XML is taken directly.
Mapping XML attributes to localization keys
XML attribute
Key format
Example
Option(*)/DisplayName
[name].DisplayName
groupStdOres.DisplayName
Option(*)/Description
[name].Description
coalDist.Description
Choice/DisplayValue
[name].[value].DisplayValue
coalDist.layeredVeins.DisplayValue
Choice/Description
[name].[value].Description
coalDist.layeredVeins.Description
In the above, Option(*) can represent any type of option, such as OptionDisplayGroup (tab), OptionChoice (toggle button), or OptionNumeric (slider).
Example lang entries
groupStdOres.displayName=Vanilla Ores
coalDist.description=How coal is generated
coalDist.layeredVeins.displayValue=Coal veins