Jump to content

Recommended Posts

Posted

Hi,

What command return the OS Language or the Regional setting?

In fact i'm looking to add an "IF" condition in a .cmd file to call/select a specific language setup for a multilangual application.

If it can help, here the regional setting in the registry

[HKEY_CURRENT_USER\Control Panel\International] 
"Locale"="0000040C"
"sCountry"="France"
"sLanguage"="FRA"

Regards

coucou


Posted

Well, to get the os language (not the keyboard settings, that can be bogus), you can find it here:

go to %systemroot%\system32, search for the file winver.exe, check it's properties, in the tab "version", click on "language". There it is. If now somehow you could get that in your batch file... (I want to know that too :P)

Posted

Hi,

After hours of serach and test i found how to... with AutoIt

$Lang = RegRead("HKEY_CURRENT_USER\Control Panel\International", "sLanguage")
If $Lang = "FRA" Then
OR
Select
   Case $Lang = "FRA"

when the serached key "sLanguage", "Locale", "sCountry"... could be found in Regional settings in the registry

Tested working :thumbup

Enjoy

coucou

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...