GetSystemLanguage() return value
Posted: Fri Aug 16, 2019 12:47 am
I am using Hollywood version 6.0 to create a very simple installation script.. I was looking for a way to get the system language used by the user that run my script and in the hollywood guide I found this function:
lang$ = GetSystemLanguage()
In the doc there is written that at the moment this function support the following languages:
#LANGUAGE_CROATIAN
#LANGUAGE_CZECH
#LANGUAGE_DANISH
#LANGUAGE_DUTCH
#LANGUAGE_ENGLISH
#LANGUAGE_FINNISH
#LANGUAGE_FRENCH
#LANGUAGE_GERMAN
#LANGUAGE_GREEK
#LANGUAGE_HUNGARIAN
#LANGUAGE_ITALIAN
#LANGUAGE_NORVEGIAN
#LANGUAGE_POLISH
#LANGUAGE_PORTUGUESE
#LANGUAGE_RUSSIAN
#LANGUAGE_SPANISH
#LANGUAGE_SWEDISH
#LANGUAGE_TURKISH
#LANGUAGE_UNKNOWN
For me, all these languages are enough, as I need to detect these three following languages: Italian, French and English.
But when I print the variable with the Print() function it returns a number instead of a string. So how can I know which is the system language used by the user? is there another function to use or am I missing something or doing it in the wrong way?
Thanks in advance for the help!
lang$ = GetSystemLanguage()
In the doc there is written that at the moment this function support the following languages:
#LANGUAGE_CROATIAN
#LANGUAGE_CZECH
#LANGUAGE_DANISH
#LANGUAGE_DUTCH
#LANGUAGE_ENGLISH
#LANGUAGE_FINNISH
#LANGUAGE_FRENCH
#LANGUAGE_GERMAN
#LANGUAGE_GREEK
#LANGUAGE_HUNGARIAN
#LANGUAGE_ITALIAN
#LANGUAGE_NORVEGIAN
#LANGUAGE_POLISH
#LANGUAGE_PORTUGUESE
#LANGUAGE_RUSSIAN
#LANGUAGE_SPANISH
#LANGUAGE_SWEDISH
#LANGUAGE_TURKISH
#LANGUAGE_UNKNOWN
For me, all these languages are enough, as I need to detect these three following languages: Italian, French and English.
But when I print the variable with the Print() function it returns a number instead of a string. So how can I know which is the system language used by the user? is there another function to use or am I missing something or doing it in the wrong way?
Thanks in advance for the help!