GetSystemLanguage under Windows
- Juan Carlos
- Posts: 888
- Joined: Mon Sep 06, 2010 1:02 pm
GetSystemLanguage under Windows
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
The list is a list of constants that you should use in the code.
Try
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.
Try
Code: Select all
DebugPrint(#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
Hollywood 6.1