Localization: Adding a new language 本地化:添加新語言
Localization: Adding a new language 本地化:添加新語言
模組介紹 作者原文
Localization: Adding a new language 本地化:添加新語言
在Civilization VI用戶文件夾(例如:C:\ Users \ Merri \ Documents \ My Games \ Sid Meier的Civilization VI)中,您可以添加一個新的空文本文件夾。
您可以在此文件夾中創建LocalizationDatabase_Data.sql文件:
碼:
插入“語言”值('fi_FI','Suomi',null,2,1);INSERT INTO“DefaultAudioLanguages”VALUES('fi_FI','English(US)');插入“SteamLanguages”VALUES('芬蘭語','fi_FI');INSERT INTO“LanguagePriorities”VALUES('fi_FI','fi_FI',100);插入“LanguagePriorities”VALUES('fi_FI','en_US',90);INSERT INTO“FontStyleSheets”VALUES('fi_FI','Civ6_FontStyles_EFIGS.xml',NULL,'MinionPro-Medium.otf');
格式類似於遊戲的Assets / Text文件夾中的格式。您還可以檢查LocalizationDatabase_Schema.sql文件以瞭解上述INSERT規則中每個值的含義。
該文件夾中的其他文件是此格式的語言的本地化XML文件:
碼:
<?xml version =“1.0”encoding =“utf-8”?><GAMEDATA>
<LocalizedText>
<替換語言=“fi_FI”Tag =“LOC_TUTORIAL_MAP_NAME”>
<文本> Tutoriaalikartta </文本>
</替換>
</ LocalizedText></ GAMEDATA>
以這種方式添加語言比將語言包作爲Mod具有以下優點:
該語言在遊戲選項中作爲可選選項提供。
遊戲會記住所選的選項。
如果重新加載遊戲,您的文本不會重置爲英語(這是目前遊戲引擎如何處理本地化數據庫的錯誤)。
沒有.modinfo文件需要維護。只是XML文件和單個SQL文件。
現有已保存的遊戲也會被翻譯。
IMO這似乎是添加新語言的最佳方式,儘管這種選項可能不太可能通過Steam獲得(就像Mods一樣)。
唯一的缺點是目前沒有方法可以翻譯一些後來完全由Expansion1_RemoveText.xml刪除的字符串,這意味着一些Rise&Fall仍未翻譯。
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:
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.
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.
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 這類遊戲沒有通用的模組管理器:有的模組直接替換遊戲檔案、有的放進遊戲專屬的 Mods 資料夾、有的要先裝遊戲對應的社群載入器或工具,以包內說明為準。
- 嚴格按說明放置檔案;標註「前置依賴」的模組需要把依賴一併裝好。
- 啟動遊戲確認載入成功;部分遊戲需要在設定或模組選單裡手動啟用。
不同遊戲、不同模組的安裝位置差異很大,包內說明是最可靠的依據。