Acid.Crash
Chieftain
- Joined
- Dec 30, 2024
- Messages
- 52
Hi here,
I am trying to play around with the localization files and seems like things have changed since Civ6 guides.
My goal is to add an unsupported locale to the game
What have I currently done:
Step 1: added the following lines:
With this, I am expecting to add a basic text support in the game.
After adding it, a new entry is indeed visible (and selectable) in the Options > System > Language
I can verify it applies, because I see a side effect: there is no carousel banner for the news/patch/etc (screen added later).
Step 2: adding the following sample (it should rename the "additional content" item in the main menu)
Step 3: linking new file via
Locale files seem to be defined twice (after comments in Line 512 and line 943)
In the end, I get the following result
Per my understanding, I need to do the same for every new localized file within every module (Base and DLC)
With this, I will be grateful for any ideas with the following areas.
Is there an easier way of integrating new files from Step 3?
It seems questionable to overwrite whole *.modinfo file for the sake of adding few new lines.
How can I fix the missing carousel banner for the news/patch/etc
I assume it behaves so because it tries to find banner-locale for the unsupported language on the server and fails.
If this is the case, is it possible to override it to use English as a default?
Thank you in advance.
I am trying to play around with the localization files and seems like things have changed since Civ6 guides.
My goal is to add an unsupported locale to the game
What have I currently done:
Step 1: added the following lines:
Code:
>>Sid Meier's Civilization VII\Base\Assets\schema\localization\schema-loc-20-languages.sql
INSERT INTO "Languages" VALUES('lang-code','LOC_LANGUAGE_lang-code_NAME',null,8);
INSERT INTO "LanguagePriorities" VALUES('lang-code','lang-code',100);
INSERT INTO "LanguagePriorities" VALUES('lang-code','en_US',50);
With this, I am expecting to add a basic text support in the game.
After adding it, a new entry is indeed visible (and selectable) in the Options > System > Language
I can verify it applies, because I see a side effect: there is no carousel banner for the news/patch/etc (screen added later).
Step 2: adding the following sample (it should rename the "additional content" item in the main menu)
Code:
>>Sid Meier's Civilization VII\Base\modules\base-standard\text\lang-code\ShellText.xml
<?xml version="1.0" encoding="utf-8"?>
<Database>
<LocalizedText>
<Replace Tag="LOC_UI_CONTENT_MGR_TITLE" Language="lang-code">
<Text>Testing_new_locale1</Text>
</Replace>
</LocalizedText>
</Database>
Step 3: linking new file via
Code:
>>Sid Meier's Civilization VII\Base\modules\base-standard\base-standard.modinfo
<Item locale="lang-code">text/lang-code/ShellText.xml</Item>
Locale files seem to be defined twice (after comments in Line 512 and line 943)
In the end, I get the following result
Spoiler screen :
Per my understanding, I need to do the same for every new localized file within every module (Base and DLC)
With this, I will be grateful for any ideas with the following areas.
Is there an easier way of integrating new files from Step 3?
It seems questionable to overwrite whole *.modinfo file for the sake of adding few new lines.
How can I fix the missing carousel banner for the news/patch/etc
I assume it behaves so because it tries to find banner-locale for the unsupported language on the server and fails.
If this is the case, is it possible to override it to use English as a default?
Thank you in advance.
Last edited: