Initial hack for allowing varying names cases (units, buildings, etc.)

Merri

Warlord
Joined
Aug 18, 2007
Messages
231
One of the things that I couldn't find any information for in the English language file that was bundled in the game (within the NewText\EN_US folder) was how to get various formattings for units, buildings etc. – in Finnish it simply doesn't look good to have text like "Egyptian Archer" as "Egyptiläinen Jousimies". However I can't just use lowercase for all unit names as that'd make unit listings look odd. The exceptions include some wonder & unit names, B17 should always begin uppercase.

So I did this change to CIV5GameTextInfos_WorldView.xml:
Code:
        <Row Tag="TXT_KEY_PLOTROLL_UNIT_DESCRIPTION_CIV">
            <Text>{1_CivAdjective:textkey} {2_UnitName &lt;&lt; {2_UnitName}}</Text>
        </Row>

And this is what the unit XML looks like:
Code:
        <Row Tag="TXT_KEY_UNIT_ARCHER">
            <Text>Jousimies</Text>
        </Row>
        <Row Tag="Jousimies">
            <Text>jousimies</Text>
        </Row>

I know this is very much a hack and there is probably a better method; but for now it is the only way I know to get this done.

I also tried a lot of different things in hopes of getting more strings for all the grammatical cases Finnish has (jousimies, jousimiehelle (to archer), jousimiehen (archer's), jousimiestä ([does something to, ie. shoots] archer)...)
 
Back
Top Bottom