on ‎2011 Jun 08 9:23 AM
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
Request clarification before answering.
Hi Bill,
Have you translated everything in your xlf including the label?
Regards,
Himanshu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
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
| User | Count |
|---|---|
| 13 | |
| 9 | |
| 6 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.