# LocalizePanel

int LocalizePanel (int panelHandle, const char *languageResourceFile);

## Purpose

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.

## Parameters

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.

## Return Value

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 –1 to –999, it is one of the error values defined in userint.h. Otherwise, it is one of the error values defined in toolbox.h. Use GetGeneralErrorString in the toolbox to get a description. Among the more commonly encountered errors are:
–12 | Out of memory!
–91 | Too many files are open.
–93 | Input/Output error.
–94 | File not found.
–95 | File access permission denied.
–97 | Disk is full.
–99 | File already open.
–100 | Badly formed pathname.
–6000 | Invalid or corrupt language file