on 07-16-2015 1:33 PM
Hi,
I need to convert a button's text to Chinese in Web Dynpro Java application.
I have added the resource path and translation in the <ResourceName>_zh.xlf file. But the translations are not getting reflected when I change user's portal language to Chinese.
I have also tried changing the file name to <ResourceName>_zh_CN.xlf. Also tried adding Chinese [zh-CN] in browser's language. But it didn't work.
I have also tried changing the encoding form from 'UTF-8' to 'UTF-16' in .xlf file. But it started throwing build error at time of generation of .properties file --> (java.lang.reflect.InvocationTargetException)
Also gone through below links :
https://scn.sap.com/thread/3262427
Can anyone provide a solution for this issue?
Thanks,
Tarun
Hello Jain,
1. In the Package Explorer, select the .properties file that the system has generated.
2. From the context menu, choose Open With… → S2X Document Editor.
Go to the Resource Text
and Click on Edit
3. Save your changes.
Please refer this document
One done the modifications in your DC. Right click On project ..select RELOAD and REBUILD your project Generate new archive and deploy and run your application
Regards
Vijay K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your reply Vijay. I had already tried what you have suggested here. However, I was able to resolve this issue by putting UTF-16 code corresponding to Chinese text in Resource<MyWDComponentName>_zh.properties file.
This file contained translations for all views in the WD Component and is located in a folder different from the one containing the .xlf files.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.