Internationalization is a central feature of the
*FormEngine. During the
initialization a Locale is assigned to a form
instance that is used for any kind of output issues.
This contains particular:
- Label and tooltip of components
- Label of options in selection lists and trees
- Internationalized value formats for input and output (e.g. date)
- Error messages of validators and converters
- Confirmation messages before Submit
- Text generation of calculators
- Parameters for renderer
Within a form definition, there are various ways to label
components or option internationalized. The common way is to
declare MessageBundles for a form. It allows the use of the
MessageBundles for the form definition as well
as the use of various text keys. (e.g. <component
... label-key="select.label" info-key="select.info" >
)
In small forms which should be used maybe only into two languages, it is also possible to enter the texts directly in the form definition. A component can be declared not only as an attribute also by sub elements with the required language.
<component ... >
<label text="Label"/> <!-- Default-Text -->
<label lang="de" text="Beschriftung"/>
As a result the form definitions can be formed more compact, because all relevant contents are located in the XML file.


