How To Solve Incorrect Language Preferences

I work for a Belgium company with allot of international employees and therefore all our windows installations are English. But a few application refuse to accept the language preference in Windows and still give you a different language, in my case Dutch.(fig01.png, fig02.png, fig03.png)

After a little googling around I discovered that one of the programs uses GNU/Getttext to handle system language preference. Under Windows this function selects his languages not based on the Windows Language Preference, but rather on the regional settings. In my case this is Belgium. I find that a little bit odd, because Belgium has 3 official languages (Dutch, French and German). Not to mention the number of other nationalities who have a different native language. Luckily there is a workaround possible and you can force the language by setting the environment variable LANG. Just run the following command as an administrator in a command promt:

REG add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v "LANG" /t REG_SZ /d "en_US" /f

A little reboot later and all the programs start in English. (fig04.png)
If you want a different default language you need to change the “en_US” part to one of the following codes: language codes (Microsoft)

References:

http://forum.videolan.org/viewtopic.php?f=2&t=86094
http://www.gnu.org/software/gettext/FAQ.html#windows_setenv
http://msdn.microsoft.com/en-us/library/ms533052(v=vs.85).aspx

Leave a Reply