News:

Want to praise Simutrans?
Your feedback is important for us ;D.

[Linux SDL2] The language obtained is incorrect

Started by Yona-TYT, August 16, 2021, 02:38:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Yona-TYT

 Linux Mint 19.2 Tina de 64-bit and Linux 4.15.0-140-generic x86_64

When I start for the first time simutras the automatically obtained language is "Turkish", but the language of my system is "Es" or at least "En", but I have never used "Turkish".

Roboron

Since when does Simutrans pick the language automagically? It always asks me the first time I open it...

Yona-TYT

#2
An update that the forum does not mention I think, but it only worked with SDL2, at least for linux.

Edit. https://github.com/aburch/simutrans/commit/686697c57c212b40fc1c7894ce995a20090f3e5d#diff-55059a177d58798bb7beea42f35d4f5cefda89c2c8cb37304b25a9ccc83e7c50

prissi

SInce turkish is mostly English due to lacking translation, it is not that bad ...

I added debug code. Btw. on windows it will use the windows code, not the SLD2 one as this only works on very recent SDL2 \versions (2.14). Start with -log -debug 3 and search for dr_get_local in the log file. It should show "es"

Yona-TYT

You are not getting the system language, as "dr_get_local" it does not appear in the log.  ???

Do you know what is the minimum SDL2 version required? mine says "2.0.12"


Roboron

Quote from: Yona-TYT on August 16, 2021, 02:56:46 PMAn update that the forum does not mention I think, but it only worked with SDL2, at least for linux.

Yeah, a compiled a recent version with SDL2 v2.0.14 and it worked as expected for me, it set the language to ES.