Loading multilingual resource on Windows 2000

Article translations Article translations
Article ID: 300680 - View products that this article applies to.
This article was previously published under Q300680
Expand all | Collapse all

Summary

When developing globalized software on previous versions of an operating system, developers used to depend on the operating system to load the preferred resource copy from the multi-lingual resource file. Due to a design change in Microsoft Windows 2000, the preceding approach may behave differently on a Windows 2000 computer. There is a new parameter, User Interface Language (UILanguage), which may also affect the resource loading.

More information

On a Microsoft Windows NT 4.0-based computer and Microsoft Windows 95, or a Microsoft Windows 98-based computer, without changing the thread locale, the resource copy that matches the user locale in regional settings is likely to be loaded from the multilingual resource file. Resource loading works differently on Windows 2000, where the one that matches the user default UILanguage is loaded. On a non-Multilingual user interface (MUI) version of Windows 2000, the user default UILanguage is the language of the installed operating system. The following scenario describes the difference. Assume the multilingual resource file includes both English (United States) and French (France) resources, on an English Windows NT 4.0 computer with regional settings set to French (France), and the French resource is loaded. On a Windows 2000-based computer, the English resource is loaded when the settings are set to French (France), because the English resource matches the user default UILanguage. Although changing the thread locale can change the resource loading, it will not be the same behavior as that of Windows NT 4.0.

The standard solution is to build a resource-only DLL for each different language, and load the preferred DLL when necessary.

References

For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
169483 Resource language loading order

Properties

Article ID: 300680 - Last Review: January 22, 2013 - Revision: 5.0
Applies to
  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional Edition
Keywords: 
kbinfo kblocalization kbnls kbresource KB300680

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com