Locale informationAdded by IBM on August 8, 2013 | Version 1 (Original)
|IBM® Forms are designed to be locale and language aware. This means that each form is designed for a specific language and locale.
Locale support is identified through the xml:lang attribute. This attribute is added to the XFDL tag in the form, and identifies which locale the form was designed for. For example, the following form was designed for the German Switzerland locale:
Note: If the xml:lang attribute is not included on the <XFDL> tag, the form defaults to the en-US locale.
When designing localized forms, a form designer should consider the following:
An IBM Forms form can only support one locale at a time. In other words, individual XFDL items cannot accept a locale that is different from that of the form. The only exception to this rule is the currencylocale setting, which allows you to support different types of currency in one form. For example, you could create a form that contained both British pounds and US dollars by setting an en-GB locale on one field and an en-US locale on an another field.
Note: This setting does not convert currencies. To convert currencies, you must include a webservice that provides the current conversion rates.
<XFDL xmlns="http://www.ibm.com/xmlns/prod/XFDL/8.0.1" xml:lang="de-CH">
While your forms can only support one locale at a time, you can create forms in 26 languages and over 60 locales.
When you set a form item's format properties, you limit how users can input information into the form. Additionally, you can define how information on the form is displayed. For example, you can set the currency locale.
The Locale Quick Reference provides locale-specific information for each locale. This data includes default currency and mathematical characters, presentation settings, and input and output formats for dates and time.