Page 1 of 1

GetSystemLanguage under Windows

Posted: Thu Sep 22, 2016 5:03 pm
by Juan Carlos
I tryed to use this instruction to get my Windows language, to choose to default the language to start my program, but the variable gives me the number 5 but in the language support the spanish is the 16 in the list, the 5 is english but I have Windows 7 in spanish, where is the mistake?

Re: GetSystemLanguage under Windows

Posted: Thu Sep 22, 2016 9:00 pm
by fjudde
The list is a list of constants that you should use in the code.

Try

Code: Select all

DebugPrint(#LANGUAGE_SPANISH)
to figure out the value of the constant #LANGUAGE_SPANISH

you will se it's 5 as you got.

so compare the return value with a constant, e.g. #LANGUAGE_SPANISH, to figure out if you got Spanish language.