# Localize User Interface Control

toolslib\localui\localui.fp

Use this instrument driver to easily display user interfaces in different languages. When loading a panel or menu bar, you can specify a language file that contains translations for all the labels on the panel and all the menu items. You can create different language files for the user interfaces by translating them with the User Interface Localizer utility (localui.exe).

Complete the following steps to localize a user interface.

1. Create a language resource file (.lwl) for each language with the User Interface Localizer utility. For example, you might want to create files such as ui_English.lwl, ui_Spanish.lwl, and ui_German.lwl.
2. Add code to determine which language resource file to use based on the Windows regional settings. For example, you can use the GetLocaleInfo SDK function with the values LOCALE_SYSTEM_DEFAULT and LOCALE_SENGLANGUAGE to get the full English name of the Windows default language.
3. Call LoadLocalizePanel or LocalizePanel in your application with the correct language resource file.