Skip to content

Russian encoding broken with locale parameters and calendar

Tested on 0.49, but not by me as I don't have a Russian version of Morrowind.

In NCGDMW mod, we display attribute and skill names in a custom window.

If we directly insert their name in a text template, they are properly rendered. But if they are inserted in a locale's parameter, the encoding seems to be broken.

In the following image, you can see Russian attribute and skill names properly displayed in the top part, but broken in the bottom part.

russian

The bottom messages are generated using locales like: attrDown: "Your {stat} has decreased to {value}"

Also, when inserting calendar.formatGameTime() in a text template, the result is also broken:

calendar

Here is the related NCGD issue.

Edited by Mehdi Yousfi-Monod