Skip to content
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

Clone this wiki locally