In our Company we have Both English and Arabic Instances for Oracle Apps R12.1.3
So If we create any Custom OAF Page we need to add the Arabic Labels. Let see how to add them.
Example:
Page:ResultBaseSearchPG
Step1: Create folder under D: Drive as Temp
Step2: run the below command in cmd.
D:\JDev_Home\jdevbin\oaext\bin\xliffextract /xxresultbasesearch/oracle/apps/po/resultbasesearchprj/webui/ResultBaseSearchPG
-root D:\JDev_Home\jdevhome\jdev\myprojects
-source db -username apps -password apps
-dbconnection "(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.10)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=VIS)))"
-languages ar-AE
-mmd_dir D:\JDev_Home\jdevbin\oaext\config\mmd
-xliff_dir D:\Temp\XLIF\XXTFRMSLAUC19
below is same as above but in single line to directly paste in cmd prompt:
D:\JDev_Home\jdevbin\oaext\bin\xliffextract /xxffrd/oracle/apps/xxcust/ffrd/webui/ResultBaseSearchPG -root D:\JDev_Home\jdevhome\jdev\myprojects -source db -username apps -password apps -dbconnection "(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.10)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=VIS)))" -languages ar-AE -mmd_dir D:\JDev_Home\jdevbin\oaext\config\mmd -xliff_dir D:\Temp\XLIF\ResultBaseSearchPGAR
Step3: The above command will create xlf file under D:\Temp\XLIF\ResultBaseSearchPGAR
Open the xlf file> change the text for all the <target>
Let say:
Before:
<source>FileNumber</source>
<target>FileNumber</target>
<prop-group name="ora_untranslatable">
<prop prop-type="tagName">messageStyledText</prop>
<prop prop-type="attributeName">prompt</prop>
After Mofication:
Step4:
Importing the Translation in to Apps:
D:\JDev_Home\jdevbin\oaext\bin\xliffimport -username apps -password apps -dbconnection "(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.10)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=VIS)))" D:\Temp\XLIF\ResultBaseSearchPGAR\ar-AE\ResultBaseSearchPG.xlf
Step5: For export and import of translations no information will be shown in the command prompt unless there is error.
Step6: Just login to apps change the instance to arabic and check it.
So If we create any Custom OAF Page we need to add the Arabic Labels. Let see how to add them.
Example:
Page:ResultBaseSearchPG
Step1: Create folder under D: Drive as Temp
Step2: run the below command in cmd.
D:\JDev_Home\jdevbin\oaext\bin\xliffextract /xxresultbasesearch/oracle/apps/po/resultbasesearchprj/webui/ResultBaseSearchPG
-root D:\JDev_Home\jdevhome\jdev\myprojects
-source db -username apps -password apps
-dbconnection "(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.10)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=VIS)))"
-languages ar-AE
-mmd_dir D:\JDev_Home\jdevbin\oaext\config\mmd
-xliff_dir D:\Temp\XLIF\XXTFRMSLAUC19
below is same as above but in single line to directly paste in cmd prompt:
D:\JDev_Home\jdevbin\oaext\bin\xliffextract /xxffrd/oracle/apps/xxcust/ffrd/webui/ResultBaseSearchPG -root D:\JDev_Home\jdevhome\jdev\myprojects -source db -username apps -password apps -dbconnection "(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.10)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=VIS)))" -languages ar-AE -mmd_dir D:\JDev_Home\jdevbin\oaext\config\mmd -xliff_dir D:\Temp\XLIF\ResultBaseSearchPGAR
Step3: The above command will create xlf file under D:\Temp\XLIF\ResultBaseSearchPGAR
Open the xlf file> change the text for all the <target>
Let say:
Before:
<source>FileNumber</source>
<target>FileNumber</target>
<prop-group name="ora_untranslatable">
<prop prop-type="tagName">messageStyledText</prop>
<prop prop-type="attributeName">prompt</prop>
After Mofication:
<source>FileNumber</source>-- It was before FileNumber in <target> we changed to our Arabic Language and save it.
<target>رقم الملف</target>
<prop-group name="ora_untranslatable">
<prop prop-type="tagName">messageStyledText</prop>
<prop prop-type="attributeName">prompt</prop>
Step4:
Importing the Translation in to Apps:
D:\JDev_Home\jdevbin\oaext\bin\xliffimport -username apps -password apps -dbconnection "(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.10)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=VIS)))" D:\Temp\XLIF\ResultBaseSearchPGAR\ar-AE\ResultBaseSearchPG.xlf
Step5: For export and import of translations no information will be shown in the command prompt unless there is error.
Step6: Just login to apps change the instance to arabic and check it.
This comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDeletefacing below error in command prompt while using this import command. pls help:
ReplyDeleteException in thread "main" java.lang.NoClassDefFoundError: oracle/dms/console/DM
SConsole
at oracle.jdbc.driver.DMSFactory.(DMSFactory.java:51)
at oracle.jdbc.driver.PhysicalConnection.createDMSSensors(PhysicalConnec
tion.java:3873)
at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:
642)
at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:234)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
n.java:34)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:567)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:207)
at oracle.jrad.tools.trans.imp.XLIFFImporter.main(XLIFFImporter.java:59)
Caused by: java.lang.ClassNotFoundException: oracle.dms.console.DMSConsole
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 9 more
command used:
D:\p22064122_R12_GENERIC\jdevbin\oaext\bin\xliffimport -username apps -password V7xLC8me -dbconnection "(description=(address_list=(ADDRESS=(PROTOCOL=TCP)(HOST=rmohsthykxd503.oracleoutsourcing.com)(PORT=14910)))(CONNECT_DATA=(SID=STHY4I)))" D:\p22064122_R12_GENERIC\jdevhome\jdev\myprojects\oracle\apps\xbol\creditrebillworkbench\creditrebill\webui\fr-FR\fr\TkeTpCusSd135SearchTransactionsPG.xlf
PLS check the connection, give ip address instead of hostname and try, it worked for me without any issues.
Delete