cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Testing on Multi-language Web Dynpro program

Former Member
0 Likes
528

Dear all,

I am trying to create a new translation for my web dynpro program with no luck, checked with the document many times and find no idea what's goind wrong...

Here my last finding, please let me know anythings I can check:

1) I tried to add a new xlf for _en and this work

2) After I switch the language, I find that the text "row x of y" in the table control changed to the language I specific, but the label still using the one in *_en.xlf

3) I also tried to use the application property to specific the sap.locale, but point 2 still happen

Thanks in advance

Regards

Bill

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Hi Bill,

Have you translated everything in your xlf including the label?

Regards,

Himanshu

Former Member
0 Likes

Hi Himanshu,

I translated all element on one of the view, but not all objects in my application.

But I am sure I did change the label of the object I am useing for check in all language.

Regards

Bill

marcel_frei
Participant
0 Likes

Hi Bill,

How are you accessing your WebDynpro Application? Is it integrated in a SAP portal or are you calling it directly?

Are you using authentication for your application (do you have to login to access the application)?

Former Member
0 Likes

Hi Marcel,

Thanks for the reply.

Here the case I tried:

1) Right click the application > Deploy New Archive and Run (With authentication)

2) Run again by login to EP

3) Run case 1 again without authentication

4) Run case 1 again (both with and without auth) with sap.locale set

5) Run case 1 again (both with and without auth) with language personalized with EP iView

Regards

Bill

Former Member
0 Likes

Hi Bill,

That's weird.

Please do a recheck on the xlf file for translation.

Also check if this particular label was added after the first set of translation were done . if that is the case, then it would have to be added manually to your target xlf file.

I hope by label you mean WDJ UI Label and not something else.

Regards,

Himanshu

Former Member
0 Likes

Dear all,

Finally I have some luck on this.

I tried to change the language to German with personalize in EP, and it seem to take the correct xlf file with the name *_de.xlf

I think it is possible that the language code used (e.g. de) is generated differently with the language I trying to use (namely Chinese), would like to know can I check what's the suffix the program looking for?

Regards

Bill

Former Member
0 Likes

If you are using Chinese, please see :

For a comprehensive list of suffixes, kindly search on google for Browser language codes.

Regards,

Himanshu

Edited by: Himanshu K on Jun 8, 2011 3:15 PM

Former Member
0 Likes

Hi Himanshu,

Thanks, it worked.

Searched quite a while with no luck, tried code cn_zh, zh-cn, and tried zh_cn after reading your post.

and it is zh_CN as said in your post.

If anyone know how to print out the language code currently used (e.g. zh_CN), please kindly let me know.

Regards

Bill

marcel_frei
Participant
0 Likes

Hi Bill,

You can get the user's locale like this:

IWDClientUser clientUser = WDClientUser.forceLoggedInClientUser();
Locale userLocale = clientUser.getLocale();

Afterwards you can use the Locale's methods getCountry() and getLanguage().

One thing you have to remember is reloading your WebDynpro project after adding a new language for a xlf file. Rebuilding is not enough, you have to reload your WebDynpro project (right click on the project folder in the WebDynpro Explorer and choose "Reload" in the context menu. Only then will all the property files for the corresponding xlf files generated.

Cheers Marcel

Former Member
0 Likes

Hi Marcel,

Thanks for the information, that's definitely help.

I did reload and rebuild the project, but have a hard time to figure out the correct locale code

Regards

Bill

Answers (0)