on 01-13-2007 1:17 PM
Hello,
i need to make some application which enables users to change language of gui by clicking a button. I have one idea - in context is one attribute with language nad all texts, labels and so on have their own attribute in context. This attribute is calculated and returns the text in specified language-this text is then bind to UI elemets.
But i hink that there has to be another way-how can i tell that user is using specific language?
thanks
JJ
Hi Jiri,
You don't have to implement the translation process by yourself.
Here is the WD tutorial for internationalization of WD applications.
https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/35f1e990-0201-0010-7a86-914036942779
After implementing this:
If you want to change the language of an application running throw a portal use the change language option in the personalize link in the masthead.
If you want to change the language of an application not running throw a portal see the next thread:
In this solution when a user wants to change the language of the application.
We log out with a redirect URL to the same application with a new local (attached as a parameter to the URL). This solution will only work if you are not running throw a portal.
Hope this helps, Adi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Congrats
why dont u give us the solution..
Regards
AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jiri,
Try use this code when a event to change the language is launched:
IUserFactory userFactory = UMFactory.getUserFactory();
IWDClientUser user = WDClientUser.getCurrentUser();
String language = "es"; // I will try set my application's language as Spanish
IUserMaint user = userFactory.getMutableUser(user.getSAPUser().getUniqueID());
user.setLocale(new Locale(language ,"",""));
user.save();
user.commit();
Regards,
Luciano
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
do you need a webdynpro application in different languages even as ur toplevel navigation and all other navigation remain same??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.