GetSystemLanguage under Windows

Find quick help here to get you started with Hollywood
Post Reply
User avatar
Juan Carlos
Posts: 888
Joined: Mon Sep 06, 2010 1:02 pm

GetSystemLanguage under Windows

Post 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?
User avatar
fjudde
Posts: 20
Joined: Tue Dec 01, 2015 2:59 pm
Location: Stockholm, Sweden

Re: GetSystemLanguage under Windows

Post 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.
_____________________________________
Hollywood 6.1
Post Reply