int LocalizeMenuBar (int menuBarHandle, const char *languageResourceFile);
This function applies the translated strings in the language resource file (*.lwl) to the specified menu bar.
You have to regenerate the language resource file (*.lwl) when you add menus or menu items to the specified menu bar.
Use the platform SDK function GetLocaleInfo to get the system or user default language.
Input | ||
Name | Type | Description |
menuBarHandle | integer | The specifier used to reference the menu bar. This handle will have been returned by the LoadMenuBar, GetPanelMenuBar, or NewMenuBar; or, if the menu bar was automatically loaded through LoadPanel, use GetPanelMenuBar to get the menu bar handle. |
languageResourceFile | const char * | This file contains translated strings for the specified menu bar. |
Name | Type | Description | ||||||||||||||||||
status | integer | Indicates whether the function was successful. A zero indicates success. A negative value indicates an error. If the value is from Among the more commonly encountered errors are:
|