cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in Chinese Translation in Web Dynpro Java Application

0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

vijay_kumar49
Active Contributor
0 Kudos

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

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c6cfad90-0201-0010-a5b8-8f9486346...

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

0 Kudos

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.