Translation
of custom OAF pages.
We can translate the language of a custom OAF page
using XLIFF file.
Below is the command to extract the XLIFF File.
java
oracle.jrad.tools.trans.extractor.XLIFFExtractor
/xx/oracle/apps/po/webui/PoPrintReportPG -languages JA-JP -mmd_dir
$OA_HTML/jrad -root $JAVA_TOP/xx/ -xliff_dir $JAVA_TOP/xx/ -source db -username
apps -password <apps password> -dbconnection
"(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=<host>)(PORT=<port>))(CONNECT_DATA=(SID=<sid>)))"
The XLIF file will be exported to the specified -xliff
dir ($JAVA_TOP/xx/).
Once you get the .xlf file edit the file and add the
translations.
<trans-unit
id=".xx.oracle.apps.po.webui.PoPrintReportPG..mainRN...windowTitle"
translate="yes" maxbytes="4000" maxwidth="30"
size-unit="char">
<source>Print
Report</source>
<target>帳票出力</target>
<prop-group name="ora_untranslatable">
<prop prop-type="tagName">pageLayout</prop>
<prop prop-type="attributeName">windowTitle</prop>
</prop-group>
</trans-unit>
Add the translated text in <target> section.
Move the file to any working directory and run the
XLIFF import command.
The XLIFF Importer takes a translated XLIFF file and
imports it into the MDS Repository.
Below is the command to import the XLIFF File.
java
oracle.jrad.tools.trans.imp.XLIFFImporter
$JAVA_TOP/xx/oracle/apps/po/webui/PoPrintReportPG.xlf -username apps -password
<apps password> -dbconnection
"(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(Host=<host>)(Port=<port>))(CONNECT_DATA=(SID=<sid>)))"