Technical Note: Sun Java System Access Manager Localization Guide

Adding a New Language to the Supported Language List

Adding a new language to the Access Manager supported language list means that the iPlanetG11NSettings service must be modified as shown in the following examples.

Create two new files and store them in a temporary location.


Example 1 setServiceRevision.xmlFile

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE Requests PUBLIC "-//iPlanet//Sun Java System Access Manager 7.1 Admin CLI DTD//EN" "jar://com/iplanet/am/admin/cli/amAdmin.dtd">

<!-- apply this file by: amadmin -u admin-user -w admin-pwd -t filename.xml -->

<Requests>

<SchemaRootNodeRequests serviceName="iPlanetG11NSettings">

<SetServiceRevisionNumber number="new-revision-number" />

</SchemaRootNodeRequests>

</Requests>



Note –

filename— Name of the file in which XML content will be stored, setServiceRevision.xml in this example.

new-revision-number — Add 10 to the existing revision number. The default value is 0.


To update the iPlanetG11NSettings service, run the amadmin utility as mentioned in Example 1.


Example 2 amG11nSettings_mod.xml File

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE Requests PUBLIC "-//iPlanet//Sun Java System Access Manager 7.1 Admin CLI DTD//EN" "jar://com/iplanet/am/admin/cli/amAdmin.dtd">

<!-- apply this file by: amadmin -u admin-user -w admin-pwd -t filename.xml -->

<Requests>

<SchemaRequests serviceName="iPlanetG11NSettings" SchemaType="Global">

<AddDefaultValues>

<AttributeValuePair>

<Attribute name="sun-identity-g11n-settings-locale-charset-mapping"/>

<Value>locale|charset=charset-list</Value>

</AttributeValuePair>

</AddDefaultValues>

</SchemaRequests>

</Requests>



Note –

filename — Name of the file in which XML content will be stored, amG11nSettings_mod.xml in this example.

locale — Standard ISO language value supported by the browser, for example, nl, ja, or fr.

charset-list — Semicolon-separated list of supported character sets for the language specified by locale, for example, UTF-8;Shift_JIS;EUC-JP.


To update the iPlanetG11NSettings service, run the amadmin utility as mentioned in Example 2.

After the iPlanetG11NSettings service is updated, Access Manager supports the new specified language. To finalize support of the added language, you must add software message resources to this language.

For instructions on how to add a new language to the Access Manager supported language list, see Hands-on Lab Format.