Portlet Factory, Version 6.1.2
Localizing data definition properties
Use a resource bundle to localize most of the properties or Rich Data Definition builder inputs specified in a data definition file.
- Set the resource attribute in the root element of the data definition file. For example:
<DataDefinitions resources="com.bowstreet.solutions.wfm.base.datenumber_formats">- Add a resource_key attribute for any properties in a data definition.
For example, the following code is used to look up the date format string from a localized resource bundle.
<FormatExpr resource_key="base_sap_date_format_expr">Format(yyyy-MM-dd$MM/dd/yyyy)</FormatExpr>
Note: You cannot localize the <EnumerationValues> property by specifying a resource_key in the data definition file. Enumeration Values are accessed by a direct mapping to the Data Definition or Page Automation Leaf.setEnumerationValues() functionality. This mapping does not support label and value pairs, but rather just a list (java.util.List) of values.
Parent topic: Overview: localizing applications
Library | Support |