Remove TXT_KEY_ ... in game

lumat83

Chieftain
Joined
Nov 20, 2005
Messages
32
Hello :)

With all mods, in others langages than english, the words "TXT_KEY_ ... " appear in the descriptions of the units (...), in game.

For example the words : "TXT_KEY_UNIT_DIPLOMAT" instead of "DIPLOMAT"

Why ? and there is a way to remove them ?

Thank for your help :)
 
You have to reference them to a word or phrase you are using. for example:

<Language_en_US>
<Row Tag="TXT_KEY_UNIT_CAVEMAN">
<Text>Diplomat</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_HELP_CAVEMAN">
<Text>Used for diplomacy</Text>
</Row>
<Row Tag="TXT_KEY_CIVILOPEDIA_UNITS_CAVEMAN_TEXT">
<Text>Diplomatic Unit</Row>
</Language_en_US>
 
Hello :)

With all mods, in others langages than english, the words "TXT_KEY_ ... " appear in the descriptions of the units (...), in game.

For example the words : "TXT_KEY_UNIT_DIPLOMAT" instead of "DIPLOMAT"

Why ? and there is a way to remove them ?

Thank for your help :)

Please give mod examples.

Propably you should rename all 'Language_en_US ' occurance to 'Language_DE_DE'(choose you locale) to have english texts.

If you making mods you should duplicate it to all suported lockales.
 
Thanks for your anwers :)

I use for example the "City-State Diplomacy" mod. And I play in french.

In game all the mod units names appear like, for example, "TXT_KEY_UNIT_DIPLOMAT" ...

In civilopedia, it's the same thing. No texts, but only TXT_KEY_UNIT ...

How can retrieve the real texts and names (even in english) ?

It's the same problem with all the mods with new units or buildings ...
 
I'm pretty sure you will need to duplicate the text in <Language_**_**> tags for each new language. For example:
Code:
<Language_en_US>
<Row Tag="TXT_KEY_UNIT_CAVEMAN">
<Text>Diplomat</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_HELP_CAVEMAN">
<Text>Used for diplomacy</Text>
</Row>
<Row Tag="TXT_KEY_CIVILOPEDIA_UNITS_CAVEMAN_TEXT">
<Text>Diplomatic Unit</Row>
</Language_en_US> 

<Language_DE_DE>
<Row Tag="TXT_KEY_UNIT_CAVEMAN">
<Text>Diplomat</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_HELP_CAVEMAN">
<Text>Used for diplomacy</Text>
</Row>
<Row Tag="TXT_KEY_CIVILOPEDIA_UNITS_CAVEMAN_TEXT">
<Text>Diplomatic Unit</Row>
</Language_DE_DE>
Of course, this duplication only copies the English words to the German localization. If you were to translate the TXT_KEYs and submit your translations to the mod author, I'm sure he/she would be most grateful!
 
How can retrieve the real texts and names (even in english) ?

You should open mod folder and find all xml files (use search with key Language_en_US in you mods folder ):
In that mod:
c:\Users\{{Username}}\Documents\My Games\Sid Meier's Civilization 5\MODS\1cb72bc9-24df-4409-b61a-3c4227c9b1d2-9\XML\NewText\GameText.xml

Open all files with this tag in notepad

Press crtl+H (replace)

Insert Language_en_US and Language_FR_FR to inputs

Press replace all

Close and save file

Launch game.
 
Top Bottom