http://www.visualbasicscript.com/Detecting-MUI-OSLanguage-m40687.aspx
http://www.autoitscript.com/forum/topic/117085-os-display-language-switcher/
... and some other
I tried also 'systeminfo', or registry ("HKEY_CURRENT_USER\Control Panel\Desktop\MuiCached"), or even wmic and so on... All of them responded mostly with system locales or which language OS was installed originally instead of telling which MUI is used.
This one finally help:
http://social.technet.microsoft.com/Forums/en-US/35e542d7-404d-463d-bb49-6c2bd76867dd/collections-on-active-mui-language-not-os-language
Easy solution:
reg query "HKEY_CURRENT_USER\Control Panel\Desktop" -v PreferredUILanguages
If you need this to store as variable just use FOR command with /F parameter:
FOR /F "skip=1 tokens=3" %%I IN ('reg query "HKEY_CURRENT_USER\Control Panel\Desktop" /v "PreferredUILanguages"') do SET Current_MUI=%%I
Basic info about MUI:
http://en.wikipedia.org/wiki/Multilingual_User_Interface
No comments:
Post a Comment