Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

function to get the os language ( ie: French or English)

Hi All,

What is th function to get the OS language or regional language of a computer?

Thanks

1 Solution

Accepted Solutions
swuehl
MVP
MVP

You can probably query the OS by using a VB macro (maybe using something like GetSystemDefaultUILanguage()) , or read from registry using QV function:

=GetRegistryString('HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\Language\', 'InstallLanguage')

Then check the returned number:

http://msdn.microsoft.com/en-us/library/dd318693(v=vs.85).aspx

View solution in original post

4 Replies
swuehl
MVP
MVP

You can probably query the OS by using a VB macro (maybe using something like GetSystemDefaultUILanguage()) , or read from registry using QV function:

=GetRegistryString('HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\Language\', 'InstallLanguage')

Then check the returned number:

http://msdn.microsoft.com/en-us/library/dd318693(v=vs.85).aspx

Not applicable
Author

Thanks Swuehl,

Now if we  want to change the language based on the regional setting language , how we can do it?

Thanks

swuehl
MVP
MVP

Maybe like described here:

http://community.qlik.com/message/194787#194787

Instead of field names and language field values German, English etc. use the language code you get returned from registry. Then use an OnOpen trigger with a select in field action to read the registry value and select in the language code field.

Not applicable
Author

Hi Swuehl,

We dicides to use this key:

=GetRegistryString('HKEY_CURRENT_USER\Control Panel\Desktop\','MultiUILanguageId')

But unfortunately it does not work  and it does not return any thing !

Do you have any idea?

Thanks