Language File |
[Top] [Chapter] [Previous] [Next] |
The Language description is an XML file similar to the Edit-Layout. It is saved in he package file in a special section "Language". Its name must be 'Default'.
Note: To be able to localize the editor, it is required to load the *.PCC file. To select the language use SetLanguage
Structure of the language definition:
The outer tag is <loc> and inside this tag several branches are possible, such as <EN>, <DE> or others. The name of such an branch is used by the SelectLanguage action to use the included strings to translate the captions, hints and dialog texts.
This sub menu description will create two menu entries to select English or German:
<menu wpa="SelectLanguage"> <menu caption="German" wpa="SelectLanguage" param="DE"/> <menu caption="English" wpa="SelectLanguage" param="EN"/> </menu>
Of course the 'SelectLanguage' action can be executed directly using the ProcessWPA method,
VB Example: WPDLLInt1.ProcessWPA "SelectLanguage", "DE"
|