WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Language Vers - Regional Settings

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Check OS Language


Question:

Is there a place somewhere in the registry where I can see if win2k is french or english? Start with something like
dll=StrCat(DirWindows(1),"user32.dll")
x=FileVerInfo(dll,"","")
Message("Language keys",x)
The number(s) returned should get you started.

Or give this a try:

#DefineFunction Dec2Hex(Dec)
   IsZero=@TRUE
   str="0123456789ABCDEF"
   hex=""   
   for x=7 to 0 by -1
       nibble= (dec >> (x*4)) & 15
       if nibble==0 && IsZero==@TRUE then continue
       IsZero=@FALSE
       hex=strcat(hex,Strsub(str,nibble+1,1))
   next
   return(hex)
#EndFunction


objLocator = ObjectOpen("WbemScripting.SWbemLocator")
ComputerName = ""
User = ""
Password = ""
objService = objLocator.ConnectServer(ComputerName,"root/cimv2",User,Password)
objSecurity = objService.Security_
objSecurity.ImpersonationLevel = 3
col = objService.ExecQuery("Select OSLanguage from Win32_OperatingSystem")
hEnum = ObjectCollectionOpen(col)
While 1
	obj = ObjectCollectionNext(hEnum)
	If obj == 0 Then Break
	Message("OS Language",Dec2Hex(obj.OSLanguage)) 
	ObjectClose(obj)
EndWhile
ObjectCollectionClose(hEnum)

ObjectClose(objSecurity)
ObjectClose(objService)
ObjectClose(objLocator)
Language version of the operating system installed. The following table identifies the possible values.
Value Meaning 
0001 Arabic 
0004 Chinese 
0009 English 
0401 Arabic – Saudi Arabia 
0402 Bulgarian 
0403 Catalan 
0404 Chinese – Taiwan 
0405 Czech 
0406 Danish 
0407 German – Germany 
0408 Greek 
0409 English – United States 
040A Spanish – Traditional Sort 
040B Finnish 
040C French – France 
040D Hebrew 
040E Hungarian 
040F Icelandic 
0410 Italian – Italy 
0411 Japanese 
0412 Korean 
0413 Dutch – Netherlands 
0414 Norwegian – Bokmal 
0415 Polish 
0416 Portuguese – Brazil 
0417 Rhaeto-Romanic 
0418 Romanian 
0419 Russian 
041A Croatian 
041B Slovak 
041C Albanian 
041D Swedish 
041E Thai 
041F Turkish 
0420 Urdu 
0421 Indonesian 
0422 Ukrainian 
0423 Belarusian 
0424 Slovenian 
0425 Estonian 
0426 Latvian 
0427 Lithuanian 
0429 Farsi 
042A Vietnamese 
042D Basque 
042E Serbian 
042F Macedonian – FYROM 
0430 Sutu 
0431 Tsonga 
0432 Tswana 
0434 Xhosa 
0435 Zulu 
0436 Afrikaans 
0438 Faeroese 
0439 Hindi 
043A Maltese 
043C Gaelic 
043D Yiddish 
043E Malay – Malaysia 
0801 Arabic – Iraq 
0804 Chinese – PRC 
0807 German – Switzerland 
0809 English – United Kingdom 
080A Spanish – Mexico 
080C French – Belgium 
0810 Italian – Switzerland 
0813 Dutch – Belgium 
0814 Norwegian – Nynorsk 
0816 Portuguese – Portugal 
0818 Romanian – Moldova 
0819 Russian – Moldova 
081A Serbian – Latin 
081D Swedish – Finland 
0C01 Arabic – Egypt 
0C04 Chinese – Hong Kong SAR 
0C07 German – Austria 
0C09 English – Australia 
0C0A Spanish – International Sort 
0C0C French – Canada 
0C1A Serbian – Cyrillic 
1001 Arabic – Libya 
1004 Chinese – Singapore 
1007 German – Luxembourg 
1009 English – Canada 
100A Spanish – Guatemala 
100C French – Switzerland 
1401 Arabic – Algeria 
1407 German – Liechtenstein 
1409 English – New Zealand 
140A Spanish – Costa Rica 
140C French – Luxembourg 
1801 Arabic – Morocco 
1809 English – Ireland 
180A Spanish – Panama 
1C01 Arabic – Tunisia 
1C09 English – South Africa 
1C0A Spanish – Dominican Republic 
2001 Arabic – Oman 
2009 English – Jamaica 
200A Spanish – Venezuela 
2401 Arabic – Yemen 
240A Spanish – Colombia 
2801 Arabic – Syria 
2809 English – Belize 
280A Spanish – Peru 
2C01 Arabic – Jordan 
2C09 English – Trinidad 
2C0A Spanish – Argentina 
3001 Arabic – Lebanon 
300A Spanish – Ecuador 
3401 Arabic – Kuwait 
340A Spanish – Chile 
3801 Arabic – U.A.E. 
380A Spanish – Uruguay 
3C01 Arabic – Bahrain 
3C0A Spanish – Paraguay 
4001 Arabic – Qatar 
400A Spanish – Bolivia 
440A Spanish – El Salvador 
480A Spanish – Honduras 
4C0A Spanish – Nicaragua 
500A Spanish – Puerto Rico 

Article ID:   W16497
File Created: 2005:02:18:12:21:00
Last Updated: 2005:02:18:12:21:00