The catalog utility supports the -xliff command to generate a translatable XLIFF file for a specific file.
The table below describes the supported parameters for generating XLIFF files.
The source file can be the report definition (.xdo) file, an RTF template file (.rtf), or a BI Publisher layout template file (.xpt). When the source is the .xdo file, the generated XLIFF file includes all user-entered strings from the report definition interface, for example: description, layout names, parameter names.
Parameter | Sample | Description |
---|---|---|
source |
/Samples/Financials/Balance+Letter.xdo |
The path to the report or template file (RTF or XPT) for which to generate the XLIFF file. |
target |
/home/bipub/reports/Balance+Letter/Balance+Letter.xlf |
The location to save the generated .xlf document. |
basedir |
/home/bipub/reports/Balance+Letter/ |
The directory to place the generated .xlf files into. |
The following examples show how to generate translation files:
The following example generates an XLIFF file for a single report definition file.
$ BIPCatalogUtil.sh -xliff source=/home/bipub/reports/Balance+Letter/Balance+Letter.xdo target=/home/bipub/reports/Balance+Letter/Balance+Letter.xlf
To save the XLIFF to a base directory:
$ BIPCatalogUtil.sh -xliff source=/home/bipub/reports/Balance/Balance+Letter.xdo basedir=/home/bipub/reports/Balance+Letter/
The following example generates an XLIFF file for a single RTF template file.
$ BIPCatalogUtil.sh -xliff source=/home/bipub/reports/Balance+Letter/Balance+Letter+Template.rtf target=/home/bipub/reports/Balance+Letter/Balance+Letter+Template.xlf
To save the XLIFF to a base directory:
$ BIPCatalogUtil.sh -xliff source=/home/bipub/reports/Balance/Balance+Letter+Template.rtf basedir=/home/bipub/reports/Balance+Letter/