Exporting localized string resources with the command-prompt tool

PolicyCenter provides a command-prompt tool to manually export certain string resources. The command exports the following strings resources as name/value pairs:

  • Display keys
  • Typecodes
  • Workflow step names

The export file organizes the strings into translated and non-translated groups. The command provides parameters that enable you to specify the location of the export file and a language-specific set of string resources to export.

To run the export tool, ensure that the application server is running and navigate to your application installation directory. Then run the following command:

gwb exportLocalizations -Dexport.file= targetFile -Dexport.language=languageCode

  • Command-prompt parameter -Dexport.file specifies targetFile, the name of the file in which PolicyCenter saves the exported resource strings. You must add the file extension to the file name. By default, PolicyCenter puts the export file in the root of the installation directory. You specify the directory as follows:
    • To leave the export file in the same location, enter only the name of the file to export.
    • To save the file in a different location, enter either an absolute path or a relative path to the file from the root of the installation directory.
  • Command-prompt parameter -Dexport.language specifies languageCode, the language code that PolicyCenter uses to determine the files from which to extract the resource strings. The language name must match a PolicyCenter language type that exists in the LanguageType typelist. For example, specifying ja_JP indicates that PolicyCenter is to look for property files that have that language code in the file name, such as display_ja_JP.properties.

See also