Jump to content

OS language / Regional setting


Recommended Posts

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

Link to comment
Share on other sites


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)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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