TWPLocalizeForm Object
Methods
This class implements a TForm with automatic localisation capability.

Unit
WPLocalize

Declaration
TWPLocalizeForm = class(TForm)

Hierarchy
TForm <--TWPLocalizeForm

Subclasses
None

Description
The class TWPLocalizeForm can be used instead of the TForm to create a form which can localize its own strings.
It is controlled by the instance of the class TWPLanguageControl which must exist in the project.
Inherit the forms from this class to enable the localization capability:



This change in the source code is required:




In the class TWPLanguageControl you can specify if the strings should be loaded or saved and which entry in the XML tree should be used. The XML parent is set to "loc" and should not be changed. Sub entries of this entry, such as "EN" will contain all the strings of the application in various sublevels.
Note
Only one instance of TWPLanguageControl is allowed in an application.


Introduced Methods
LoadLocStrings 
LocStringName 
SaveLocStrings 


Copyright (C) by WPCUBED GmbH - Munich
http://www.wpcubed.com