Merri
Warlord
- Joined
- Aug 18, 2007
- Messages
- 231
This is the minimum that I needed to do to create a mod that makes changes to the localization database.
C:\Users\YOURNAME\Documents\My Games\Sid Meier's Civilization VI\Mods\Civilization VI suomeksi\Civilization VI suomeksi.modinfo
./Translations/Vanilla_fi_FI.xml
Please DO NOT use <Update /> like this with regular mods to replace original string tags, instead make your own tags. If you reuse original tags for your own purposes you will mess up any localization done, probably ending up in a situatation where localization displays things like the original unit name translated instead of your unit name. By using new tags the correct strings will appear despite there being no localized string and there will be no conflicts.
Also, I would prefer to not doing things this way and instead add a new fi_FI language, but this method will suffice until there are better options available - if there ever will be. Civilization V was quite painful to work with, especially with expansions and their reuse of original tags... was impossible to make a language pack that required no hassle from end user if they didn't happen to have all the latest stuff.
C:\Users\YOURNAME\Documents\My Games\Sid Meier's Civilization VI\Mods\Civilization VI suomeksi\Civilization VI suomeksi.modinfo
Code:
<?xml version="1.0" encoding="utf-8"?>
<Mod id="8ed00bf3-99f6-4360-81bf-709791a90fbf" version="1">
<Properties>
<Name>LOC_MOD_TITLE</Name>
<Teaser>LOC_MOD_TEASER</Teaser>
<Description>LOC_MOD_DESCRIPTION</Description>
<Authors>LOC_MOD_AUTHORS</Authors>
<EnabledByDefault>1</EnabledByDefault>
</Properties>
<Components>
<LocalizedText id="FINNISH_TEXT">
<Items>
<File>Translations/Vanilla_fi_FI.xml</File>
</Items>
</LocalizedText>
</Components>
<LocalizedText>
<Text id="LOC_MOD_TITLE">
<en_US>Civilization VI suomeksi</en_US>
</Text>
<Text id="LOC_MOD_TEASER">
<en_US>Finnish Language Pack</en_US>
</Text>
<Text id="LOC_DESCRIPTION">
<en_US>This language pack providers the glorious Finnish language to the game.</en_US>
</Text>
<Text id="LOC_MOD_AUTHORS">
<en_US>Vesa Piittinen</en_US>
</Text>
</LocalizedText>
<Files>
<File>Translations/Vanilla_fi_FI.xml</File>
</Files>
</Mod>
./Translations/Vanilla_fi_FI.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<GameData>
<LocalizedText>
<Update>
<Where Tag="LOC_UNITOPERATION_FOUND_CITY_DESCRIPTION" Language="en_US" />
<Set Text="Perusta kaupunki" />
</Update>
</LocalizedText>
</GameData>
Please DO NOT use <Update /> like this with regular mods to replace original string tags, instead make your own tags. If you reuse original tags for your own purposes you will mess up any localization done, probably ending up in a situatation where localization displays things like the original unit name translated instead of your unit name. By using new tags the correct strings will appear despite there being no localized string and there will be no conflicts.
Also, I would prefer to not doing things this way and instead add a new fi_FI language, but this method will suffice until there are better options available - if there ever will be. Civilization V was quite painful to work with, especially with expansions and their reuse of original tags... was impossible to make a language pack that required no hassle from end user if they didn't happen to have all the latest stuff.