Last update: 2018-02-20 (to match Rise & Fall changes)
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:
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:
Adding a language this way has the following benefits over making language pack as a Mod:
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.
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.
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.