Use system language by default #3723

Wuzzy2 opened this Issue Jun 24, 2016 · 9 comments


None yet

5 participants

Wuzzy2 commented Jun 24, 2016


Add a new item in the list of languages, called “System language”. If this one is selected, the game uses the language as defined by the operating system (to be detected with environment variables, etc.)

The system language should be used by default.

The the game was unable to detect the system language, use English.


In linux I guess it's a question of reading in $LANG or locale, but I think we have deactivated running shell commands from lua in pioneer, so it would have to be done from C-side. How is locale handled on OSX and Windoze?

laarmen commented Jun 25, 2016

We can just ignore windows at first, though.

Le sam. 25 juin 2016 09:51, Andrew Copland a
écrit :

As usual, it's a bit complicated on Windows,

You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#3723 (comment),
or mute the thread


I suspect this feature would be nices for those who are so bad at english they don't even know how to navigate the Language-menu. I suspect those people would be on Windows to begin with. (GNU/Linux users know how to fix stuff, and read tutorials, manuals, documentation, most of which is in English)


I can add it for Windows easily enough. If either of you want to do the Linux part and interface then I can just plug in the Windows part afterwards.

We'll fight over who gets to do OSX afterwards ;)

impaktor commented Jun 25, 2016 edited

Implementing it would be at least one or several hours of head-scratching for me, which I don't intend to invest to save new players a few seconds of choosing the language.

(sorry if I sound grumpy, but weather is nice, and I want to be outside)


Wouldn't it be easier to bring up a question dialog about language on the first start of the game?


@laarmen you interested?

@nozmajner maybe, but it's good to have a default selected that matches the current system language too.


I found some pack of small png-flags a while back and had an idea that it could go with languages. Assuming one can match flags/countries with languages.

Anyway, just throwing that idea out there in case anyone feels devoted to perfecting language selection.

Also, @nozmajner's idea is not bad at all, I like it's simplicity, and it would "just work". E.g. for reading $LANG for GNU/Linux, there's an enormous plethora of different languages, flavours, char-sets, codings, layouts, etc. So you would have to handle that some way. And then support it. Just a greeting screen for first time circumnavigates the problem. Also, sooner or later, we will need a variable that holds if the player is "new", showing extra help, extra info, tutorial mode, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment