Resource icon

Localization: Adding a new language

Last update: 2018-02-20 (to match Rise & Fall changes)

2016-11-02 Civ6 Localization.png


In Civilization VI user folder (for example: C:\Users\Merri\Documents\My Games\Sid Meier's Civilization VI) you can add a new empty Text folder.

To this folder you can create a LocalizationDatabase_Data.sql file:

Code:
INSERT INTO "Languages" VALUES('fi_FI','Suomi',null,2,1);
INSERT INTO "DefaultAudioLanguages" VALUES('fi_FI','English(US)');
INSERT INTO "SteamLanguages" VALUES('finnish','fi_FI');
INSERT INTO "LanguagePriorities" VALUES('fi_FI','fi_FI',100);
INSERT INTO "LanguagePriorities" VALUES('fi_FI','en_US',90);
INSERT INTO "FontStyleSheets" VALUES('fi_FI','Civ6_FontStyles_EFIGS.xml', NULL, 'MinionPro-Medium.otf');

The format is similar to what you can find in the game's Assets/Text folder. You can also check the LocalizationDatabase_Schema.sql file to understand the meaning of each of the values in the INSERT rules above.


The other file(s) on the folder are your localized XML files for the language in this format:

Code:
<?xml version="1.0" encoding="utf-8"?>
<GameData>
   <LocalizedText>
       <Replace Language="fi_FI" Tag="LOC_TUTORIAL_MAP_NAME">
           <Text>Tutoriaalikartta</Text>
       </Replace>
   </LocalizedText>
</GameData>

Adding a language this way has the following benefits over making language pack as a Mod:
  • The language becomes available as a selectable option in Game Options.
  • The game remembers the selected option.
  • If reloading a game your text doesn't reset back to English (this is currently a bug in how localization database is handled by the game engine).
  • There is no .modinfo file to maintain. Just XML files and a single SQL file.
  • Existing saved games are translated as well.
IMO this seems like the best way to add a new language, although it is probably highly unlikely this option will be available via Steam (like Mods will be).

The only downside is that currently there is no method for translating some strings that are later removed entirely by Expansion1_RemoveText.xml which means some of Rise & Fall remains untranslated.
  • Like
Reactions: Manias
Author
Merri
Views
3,609
First release
Last update
Rating
5.00 star(s) 1 ratings

Latest reviews

So good
Top Bottom