Sun Java logo     Previous      Contents      Next     

Sun logo
Sun Java System Identity Installation Pack 2005Q4M3 Release Notes  

5

Enabling Internationalization

This document provides information on configuring Identity Manager to use multiple languages or display a language other than English.


Architectural Overview

Components

File

Description

WPMessages.properties

Default message file. Located in $WSHOME/idm/web/WEB-INF/classes/com/waveset/msgcat. Shipped as part of the idmcommon.jar file.

Displays message text in English and loads by default unless you’ve customized your IDM installation to behave otherwise.

Waveset.properties

Located in $WSHOME/config. Edit to enable support for multiple languages. (Set Internationalization.enabled to true.)

System Configuration Object

Specify custom message catalog.

additional message file for each supported language

Additional supported languages each require its own message file.WPMessages_xx_XX.properties, where xx represents the language and XX represents the country. For example, WPMessages_en_US.properties contains messages in American English. Each international catalog has its own .jar.

i18n.xml

Contains multiple <Object> elements that define which languages an Identity Manager administrator or user can choose.

Additional notes:

Typical Entry

Messages are contained in key/text pairs and contains three parts:

Each line in the resource array contains two strings. Translate the second quoted string on each line.

Certain strings to be translated contain special codes for data that will be inserted into the string when it is displayed. For example, if you have the following string to translate:

UI_USER_CONNECT={0}, connected at 100 mbs

the rendered version could appear as jfaux, connected at 100 mb

Translations typically appear inside a browser, so it is appropriate to add HTML tags to format the string, as shown below:

_FM_ACCOUNT_ID_HELP=<b>Account ID</b><br>Enter a name for this user. This field is required.


Enabling Support for Multiple Languages

To enable support for multiple language catalogs, follow these steps, which are described in created detail below:

Step One: Download and Install Localized Files

Before You Install

Perform the following tasks before you install localized files:

  1. Install Identity Manager. See Identity Install Pack Installation for detailed installation procedures.
  2. Make sure the following locales on the application server have been set to UTF-8.
    • Application server instance
    • Database
    • Java Virtual Machine (JVM)
    • Refer to the documentation for these products for information about setting the locale.

Download Message Catalog Files

Download the appropriate msgcat jar and place it in WEB-INF/lib. The Identity Manager Image Server website provides the following ZIP files that contain localized product files and documentation.

File Name (.zip)

Language

Locale

IDM__5_0_l10n_de

German

de_DE

IDM__5_0_l10n_es

Spanish

es_ES

IDM__5_0_l10n_fr

French (France and Canada)

fr_FR

IDM__5_0_l10n_it

Italian

it_IT

IDM__5_0_l10n_ja

Japanese

ja_JP

IDM__5_0_l10n_ko

Korean

ko_KR

IDM__5_0_l10n_pt

Brazilian Portuguese

pt_BR

IDM__5_0_l10n_zh

Simplified Chinese

zh_CN

IDM__5_0_l10n_zh_TW

Traditional Chinese

zh_TW

Download the ZIP file to a temporary location. By default, the contents of the ZIP file are extracted to the FileName\IDM_5_0_l10n directory, where FileName matches the name of the downloaded file, minus the ZIP extension.

Zip File Contents

Every extracted ZIP file contains the following:

Most extracted ZIP files contain the following:

Additional translated publications might also be available.

Install Localized Files

Use the following steps to install localized files on your application server.

  1. Copy the JAR file from the temporary location to the IdentityManagerInstallation/WEB-INF/lib directory.

Step Two: Edit the Waveset.Properties File

  1. Open the IdentityManagerInstallation/config/
    Waveset.properties
    file with a text editor.
  2. Change the Internationalization.enabled property to true.
  3. Save your changes and close the file.
  4. Either restart Identity Manager or select Debug --> Reload Properties for this change to take effect.

Step Three: Import, Edit and Load the <ApplicationDirectory>\sample\i18n.xml File

Configure this file to set which languages Identity Manager administrators and end-users can be displayed.

  1. Open the IdentityManagerInstallation/sample/i18n.xml file with a text editor. The file contains multiple <Object> elements that define which languages an Identity Manager administrator or user can choose. Each <Object> element is similar to the following:
  2.    <Object name='en_US'>

          <Attribute name='lang' value='en'/>

          <Attribute name='cntry' value='US'/>

          <Attribute name='gif' value='images/f0-us.gif'/>

       </Object>

  3. Add, edit, and/or delete <Object> elements until only the languages appropriate for your environment are present. If you need to add or edit <Object> elements, use the following table to determine the proper values for the object name, and lang, cntry, and gif values.

Language

name

lang

cntry

gif

Chinese (Simplified)

zh_CN

zh

CN

images/f0-cn.gif

Chinese (Traditional)

zh_TW

zh

TW

images/f0-cn.gif

English (U.S.)

en_US

en

US

images/f0-us.gif

French (Canada)

fr_CA

fr

CA

images/f0-ca.gif

French (France)

fr_FR

fr

FR

images/f0-fr.gif

German (Germany)

de_DE

de

DE

images/f0-de.gif

Italian (Italy)

it_IT

it

IT

images/f0-it.gif

Japanese (Japan)

ja_JP

ja

JP

images/f0-jp.gif

Korean (South Korea)

ko_KR

ko

KR

images/f0-kr.gif

Portuguese (Brazil)

pt_BR

pt

BR

images/f0-br.gif

Spanish (Spain)

es_ES

es

ES

images/f0-es.gif

    1. Save your changes and close the file.
      1. Load the i18n.xml file
    2. Log in to the Identity Manager administrative interface.
    3. Click the Configure tab at the top of the page. Then click on the Import Exchange File subtab on the left.
    4. Specify the path or browse IdentityManagerInstallation/sample/
      i18n.xml
      file. Then click the Import button to load the file.

After completing these steps, log out of Identity Manager. Restart your application server. When you reload the Identity Manager login page, the flags and locales you specified in the i18n.xml file are displayed. Select the appropriate flag to view localized text.



Previous      Contents      Next     


Copyright 2006 Sun Microsystems, Inc. All rights reserved.