none
Mismatch between Locale and LocaleName on Danish Windows 7

    Question

  • Hi

    We are developing an application using Delphi 2010. Delphi uses HKEY_CURRENT_USER\Control Panel\International\Locale to determine the current language.

    At lot of our customers (though not all) are experiencing strange behavior with this on Danish Windows 7. It appears that HKEY_CURRENT_USER\Control Panel\International\Locale is set to 00000409, the hex value of 1033 (English (United States)). However HKEY_CURRENT_USER\Control Panel\International\LocaleName is set to da-DK (Danish (Denmark)).

    At first we thought that this was an erroneous configuration by a specific customer, but as Windows 7 is gaining momentum we are seeing this problem more and more often. It is solved either by editing the registry key or opening "Region and Language" from the Control Panel, and selecting OK, even without changing anything. I'm not really sure what the origin of this problem is. Either Windows 7 itself or some profile configuration tool either from Microsoft or a third party?

    We found another program that suffers from this. Starting Microsoft Paint and selecting Print > Page setup > Margins will display Inches, but change to Millimeters after applying the fix.

    Any input will be appreciated.

    Regards

    Thomas Rosted
    CodeGroup A/S, Denmark

    Thursday, May 06, 2010 10:13 AM

All replies