Technical Note: Sun Java System Access Manager Localization Guide

Organization of Software Resource Files

This section describes how files that contain Access Manager software messages are organized. Access Manager software messages are stored in three file formats:

Software messages displayed in the Administration Console (using a browser) are stored in these two formats:

Software messages displayed in the command-line interface (using a terminal window) are stored in the MO files format.

The next three subsections describe the organization of these three software message formats.

Java Properties Files

Java properties files are resource files that contain most of the software messages to be displayed in the Access Manager Administration Console. Java properties files should be saved in escaped Unicode format. Otherwise, multibyte characters are likely to be incorrectly displayed. To ensure the correct format of Java properties files, after each change, run the native2ascii binary as follows: native2ascii filename

For more information about the native2ascii binary, go to http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/native2ascii.html.

Java properties files are located under AM_INS/locale.

Each of the seven supported languages contains 70 Java properties files. The Access Manager Java properties files naming convention is as follows: amfunctionality_locale.properties


Note –

This document uses a Dutch (nl) version of Access Manager as an example language.


Java properties files for the Dutch version of Access Manager are under AM_INS/locale.

The following Java properties are for Dutch language:

XML Files

Access Manager XML files contain software messages to be displayed in the Administration Console. These XML files are used by the authentication service to display the localized authentication (login) screen based on a particular module type. Save XML files under UTF-8 encoding after each modification. To ensure that an XML file is saved under UTF-8 encoding, the Solaris binary iconv can be used as follows: iconv -f current-file-encoding -t UTF-8 filename

For more information about the iconv binary, go to http://docsun.cso.uiuc.edu/sun_docs/C/solaris_9/SUNWaman/hman1/iconv.1.html.

Access Manager XML files are located under this directory: AM_INS/web-src/services/config/auth/default_locale/

For example, the location of the XML files for the Dutch version of Access Manager is the AM_INS/web-src/services/config/auth/default_nl/ directory.

The following XML files are for the Dutch version of Access Manager:

MO Files

MO files are resource files that contain software messages to be displayed in the Access Manager CLI. MO files are commonly generated from PO files. MO files are located under AM_INS/locale/locale.UTF-8/LC_MESSAGES/

Generate MO files in UTF-8 encoding by doing the following:

The msgfmt utility is delivered as part of the gettext package. For more information about this package, go to http://www.gnu.org/software/gettext/.

For example, the location of the MO files for the Dutch version of Access Manager is the AM_INS/locale/nl.UTF-8/LC_MESSAGES/ directory.

The MO files for the Dutch version of Access Manager are as follows:

For instructions on how to generate an MO file under UTF-8 encoding, see Hands-on Lab Format.