Previous Topic: Example: Collecting the Drink Attribute

Next Topic: Configure Registration Services for Different Languages

Localize Registration Services

You can localize Registration Services by modifying the following components:

Each form for user entry, such as user_data_collector.jsp, includes an SMLOCALE variable. The SMLOCALE variable identifies the properties file that Registration Services uses. For example:

<INPUT type=HIDDEN name="SMLOCALE" value="en_US">

In this code, the value that is paired with SMLOCALE tells Registration Services to use the sample file, dms_en_US.properties.

Note: The value for SMLOCALE is specified as “lg-CN” where lg is the letter abbreviation for language and CN is the two letter abbreviation for country.

dms_en_US.properties, which is the locale properties file that is installed with Registration Services, contains English text strings. To localize Registration Services, create a locale properties file that contains text strings in the desired language.

In addition to specifying the SMLOCALE variable, you may also want to modify the character encoding for the JSP pages. Character encoding is specified in inc_header.jsp and dmserrorpage.jsp.

More information:

Configure Registration Services for Different Languages