Greetings, folks. I'm currently working on Ukrainian localization mod for Civ4, including BTS and Warlords DLC + custom scenarios.
I have next testing environments: Windows 10 Ukrainian Home edition (CP1251) + main machine Arch Linux, where I'm launching Civ4 with Steam Proton and enforced commands args: "LC_COLLATE=uk_UA.cp1251 LC_CTYPE=uk_UA.cp1251 LC_ALL=uk_UA.cp1251 LANG=uk_UA.cp1251".
Mostly, all texts in Civilopedia (which uses something like Courier font) are OK, it renders all fonts correctly. But, unfortunately, in main menu font "Sylfaen" renders text wrong. The same situation happens when I try to load russian localization as mod: letters "Я", "I" rendered not correct. It seems it takes wrong character instead of correct one.
I also had an idea to integrate "We the People" UTF8 trick into my CvGameCoreDLL.dll (https://forums.civfanatics.com/threads/we-the-people-development-diary.638777/post-15278402) (keep in mind this trick was made for Colonization, not BTS). But it seems it has no effect on my localization files.
BTW, I use number representation (HTML numeric entities) for CP1251 encoded characters in XML. So my XML files mostly look like this:
<TEXT>
<Tag>TXT_KEY_UNIT_TREBUCHET</Tag>
<Ukrainian>Òðåáóøåò</Ukrainian><English>Trebuchet</English>
</TEXT>
<TEXT>
I would be very thankful for any help. Screenshot of menu attached. It is the same issue on Windows 10 and on Arch Steam Proton as well.
I have next testing environments: Windows 10 Ukrainian Home edition (CP1251) + main machine Arch Linux, where I'm launching Civ4 with Steam Proton and enforced commands args: "LC_COLLATE=uk_UA.cp1251 LC_CTYPE=uk_UA.cp1251 LC_ALL=uk_UA.cp1251 LANG=uk_UA.cp1251".
Mostly, all texts in Civilopedia (which uses something like Courier font) are OK, it renders all fonts correctly. But, unfortunately, in main menu font "Sylfaen" renders text wrong. The same situation happens when I try to load russian localization as mod: letters "Я", "I" rendered not correct. It seems it takes wrong character instead of correct one.
I also had an idea to integrate "We the People" UTF8 trick into my CvGameCoreDLL.dll (https://forums.civfanatics.com/threads/we-the-people-development-diary.638777/post-15278402) (keep in mind this trick was made for Colonization, not BTS). But it seems it has no effect on my localization files.
BTW, I use number representation (HTML numeric entities) for CP1251 encoded characters in XML. So my XML files mostly look like this:
<TEXT>
<Tag>TXT_KEY_UNIT_TREBUCHET</Tag>
<Ukrainian>Òðåáóøåò</Ukrainian><English>Trebuchet</English>
</TEXT>
<TEXT>
I would be very thankful for any help. Screenshot of menu attached. It is the same issue on Windows 10 and on Arch Steam Proton as well.
Attachments
Last edited:
