Change Product Designer display language and help
These instructions describe how to add or change the display language for the user interface and online help from U.S. English to another language provided in the base configuration or to a language for which you provide the content.
Before you begin
- Supported Java Development Kit (JDK) with jar.exe installed
- JAVA_HOME/bin in your
PATH
About this task
In these steps, you will be working in the PolicyCenter/productdesigner/java_version/language-config directory.
Content for the Product Designer user interface and online help is provided for all languages in the base configuration. These instructions tell you how to make these languages available in the user interface and online help.
You can use these instructions to make available a language that is not in the base configuration. However, you must create the content.
Procedure
-
To unpack the user interface and online help files from
productdesigner.war, navigate to the
productdesigner/java_version/language-config
directory and run unpack.bat.
This command extracts files to the language-config/config/locale directory. Running this command creates the following files and directories in locale:
- language.properties file lists the languages to display in Product Designer.
-
display.properties and display_languageCode.properties files contain the user interface strings for U.S. English and other languages.
- doc directory contains localized content for online help. There are en_US and languageCode subdirectories for each language included in the base configuration. The online help for each language is in a productdesigner subdirectory.
- In language-config/config/locale, create a display_languageCode.properties file with localized versions of the user interface strings.
- In language-config/config/locale/doc, create a doc/languageCode directory and add localized online help content.
- Open language-config/config/locale/language.properties in a text editor.
-
For each language that you would like to appear in the user interface, add a entry
using the following format:
languageCode = Description. -
To change the default language, change the
default.languageproperty value to one of the languageCode values. - Save and close language.properties.
-
To repack the localized content into a new productdesigner.war
file, navigate to the
productdesigner/java_version/language-config
directory and run repack.bat.
This command creates a new productdesigner.war in the language-config/output directory. The WAR file contains your new language configuration.
- Make a backup copy of productdesigner/java_version/war/productdesigner.war in a location outside the PolicyCenter installation.
- Copy productdesigner.war from the language-config/output directory to the original location (productdesigner/java_version/war) on each computer that runs Product Designer, overwriting the old productdesigner.war file in that location.
- Start Product Designer by following the instructions in the Product Designer Guide.
- Make a backup copy of productdesigner/java_version/war/productdesigner.war in a location outside the PolicyCenter installation.
- Copy productdesigner.war from language-config/output to your application server.
- Deploy the WAR file by following the deployment instructions for your application server.
- Start the application server and log in to Product Designer from a web browser using the appropriate URL.
Results
- The Product Designer application server will not start if default.language is not defined or is not set to a valid language.
- Product Designer does not validate the display.properties contents for a given language. Therefore, you must localize all display keys to preserve the integrity of the user interface.
