int LocalizePanel (int panelHandle, const char *languageResourceFile);
This function applies the translated strings in the language resource file (*.lwl) to the specified panel.
You have to regenerate the language resource file (*.lwl) when you add controls to the specified panel.
Use the platform SDK function GetLocaleInfo to get the system or user default language.
Input | ||
Name | Type | Description |
panelHandle | integer | The handle of the panel to localize. This handle will have been returned by the LoadPanel, NewPanel, or DuplicatePanel function. |
languageResourceFile | const char * | This file contains translated strings for the controls on the specified panel. |
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:
|