cool3a2
Deity
- Joined
- Mar 30, 2007
- Messages
- 2,177
The hungarian community is working on translating civ 5 and has produced a first playable version already. It's problem, however, is, that it overrides the english texts. This is bad as any mod would either need to be provided in two versions or require user intervention (via editing the mod). It'd be a far better solution if we could add hungarian language support somehow.
Well, there is the Civ5/assets/Gameplay/XML/NewTexts folder, where the subfolder for the different languages can be found and also some config files. An example language config file:
Besides of this, There is the MyGames/civ5 folder where a general config file can be found. Besides of others, it contains the following three lines:
I tried to set that file to hungarian using phrases like hungarian and hu_HU. Also, I made a subfolder in Civ5/assets/Gameplay/XML/NewTexts called HU_HU containing all the translated xmls (their language tag is Language_hu_HU) and of course, I created a language config file called hungarian.txt with the following content:
If I start the game, the menu occurs in the language previously set (not hungarian) and if I leave civ5, the configs lines I mentioned are set back to german for instance (actually to whatever they were set before I edited them). I suppose that steam stores the language setting and the game then looks them up when loading. There would be two ways to solve this:
1. Another language, let's say english, could point to Language_hu_HU. This should be set for civ5, so players without these changes will still see the english texts, while hungarian users that have configured their civ5 see hungarian texts. Both languages could be provided at once in different files, the game will handle them according to how it is configured.
2. Hungarian is added by reconfigure steam so that the settings made in civ5s general config file doesn't get restored when civ5 loads (or gets restored correctly). This would be the better solution.
I suppose this will affect many other languages, too, so I'd be glad if civfanatics would support this attempt by making sure this thread doesn't disappear too soon and of course, if anyone would help with suggestions.
EDIT:
This... http://wiki.2kgames.com/civ5/index.php/Mods:AddingNewLanguage#Config.ini ... doesn't work for me.
Well, there is the Civ5/assets/Gameplay/XML/NewTexts folder, where the subfolder for the different languages can be found and also some config files. An example language config file:
<?xml version="1.0" encoding="utf-8" ?>
<GameData>
<Languages>
<Row>
<ID>0</ID>
<Type>en_US</Type>
<Name>English</Name>
<TableName>Language_en_US</TableName>
<PluralRule>2</PluralRule>
</Row>
</Languages>
<SpokenLanguages>
<Row>
<ID>0</ID>
<Type>en_US</Type>
<DisplayName>English</DisplayName>
<Path>English</Path>
</Row>
</SpokenLanguages>
</GameData>
Besides of this, There is the MyGames/civ5 folder where a general config file can be found. Besides of others, it contains the following three lines:
(The language can differ of course.); The currently selected steam language
SteamLanguage = german
; The currently selected language.
Language = de_DE
; The currently selected spoken language.
AudioLanguage = de_DE
I tried to set that file to hungarian using phrases like hungarian and hu_HU. Also, I made a subfolder in Civ5/assets/Gameplay/XML/NewTexts called HU_HU containing all the translated xmls (their language tag is Language_hu_HU) and of course, I created a language config file called hungarian.txt with the following content:
(I played around with the ID, but no difference.)<?xml version="1.0" encoding="utf-8" ?>
<GameData>
<Languages>
<Row>
<ID>0</ID>
<Type>hu_HU</Type>
<Name>Hungarian</Name>
<TableName>Language_hu_HU</TableName>
<PluralRule>2</PluralRule>
</Row>
</Languages>
<SpokenLanguages>
<Row>
<ID>0</ID>
<Type>hu_HU</Type>
<DisplayName>Hungarian</DisplayName>
<Path>English</Path>
</Row>
</SpokenLanguages>
</GameData>
If I start the game, the menu occurs in the language previously set (not hungarian) and if I leave civ5, the configs lines I mentioned are set back to german for instance (actually to whatever they were set before I edited them). I suppose that steam stores the language setting and the game then looks them up when loading. There would be two ways to solve this:
1. Another language, let's say english, could point to Language_hu_HU. This should be set for civ5, so players without these changes will still see the english texts, while hungarian users that have configured their civ5 see hungarian texts. Both languages could be provided at once in different files, the game will handle them according to how it is configured.
2. Hungarian is added by reconfigure steam so that the settings made in civ5s general config file doesn't get restored when civ5 loads (or gets restored correctly). This would be the better solution.
I suppose this will affect many other languages, too, so I'd be glad if civfanatics would support this attempt by making sure this thread doesn't disappear too soon and of course, if anyone would help with suggestions.
EDIT:
This... http://wiki.2kgames.com/civ5/index.php/Mods:AddingNewLanguage#Config.ini ... doesn't work for me.