Localizing a Mod's Language

VainApocalypse

Warlord
Joined
Aug 10, 2010
Messages
245
I have a working mod. I'm trying to add localization for a particular language so that the all of the names, cities and Civilopedia entries appear in that language. How do?

Is it as simple as doing this:

<Row Tag="UNITE_NAME" Language="en_US">
<Text>English text here</Text>

<Row Tag="UNIT_NAME" Language="ru_RU">
<Text>Русский текст здесь</Text>

Or does something else need to be done?
 
It really is as simple as that, so long as the language tag is a valid language Civ6 supports. But with many of the non-English languages you need to state such things as Masculine / Feminine / Plural / etc values such as is being done here in file C:\Program Files (x86)\Steam\SteamApps\common\Sid Meier's Civilization VI\Base\Assets\Text/Vanilla_ru_RU.xml
Code:
<GameData>
  <LocalizedText>
    <Replace Tag="LOC_BUILDING_TLACHTLI_NAME" Language="ru_RU">
      <Text>Тлачтли|тлачтли|тлачтли|тлачтли|тлачтли|тлачтли</Text>
      <Gender>masculine</Gender>
      <Plurality>1</Plurality>
    </Replace>
     .....
In case you were not aware, "Replace" is similar to "Row" except that if a matching Tag="LOC_BUILDING_TLACHTLI_NAME" Language="ru_RU" existed in the code, the previous values for Text, Gender, Plurality, etc., would literally be replaced with the new values. If no such matching combination already exist in table <LocalizedText>, a new row is created with the stated values.
 
Back
Top Bottom