on 05-09-2009 8:44 AM
Hi Portalites,
I have a scenario where i need to restrict the portal users to allow access to backend system only in two languages let us say english and portuguese.
In transactional iview properties " Logon Language (if empty, portal language is used)", i can set it either English or portuguese.
How i can go ahead to set to access the backend system only in two languages.
Thanks in Advance.
Sony.
How will you get the user to decide which language to use? You can have two iViews - one English and one Portugese.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The main thing i need is that to override the IE browser language with portal language.i have two languages in my masthead en and portuguese.all the portal users needs to work with onlythis two languages.when user set the IE browser language to chinese,portal is displaying in chinese language and he is entering backends into cheinese language.i need to restrict this language access only to en and portuguese.
thanks in advance.
Sony
So make an English role and a Portugese role and add the language specific iViews to each one. Give the user an iView that allows them to pick their language which then assigns them the correct role. You can't limit the iView language.
For an example of setting a role for user's langauge, check out
Edited by: Michael Nicholls on May 10, 2009 5:16 PM
Hi Micheal,
Thanks for the reply.
is it possible with the below issue?
want a default language: English. Also when the Internet Explorer has a different language. But when the user select manual one of the permitted languages (English and German) over the personalize button, the language should change to the selected language. Is it possible?
Thanks
Sekhar.
Hi Micheal,
I have developed this code in webdynpro in doinit method like below to dynamically set the portal language of the user to english.
try {
IUserFactory userFact = UMFactory.getUserFactory();
IUser me=UMFactory.getAuthenticator().getLoggedInUser();
IUserMaint usermaint=userFact.getMutableUser(me.getUniqueID());
Locale lc_en=new Locale("en");
Locale lc_de=new Locale("de");
if(me.getLocale().getDisplayLanguage()=="German")
{
usermaint.setLocale(lc_de);
usermaint.commit();
usermaint.save();
wdThis.Restart();
}
else
{
usermaint.setLocale(lc_en);
usermaint.commit();
usermaint.save();
wdThis.Restart();
}
catch (UMException e) {
wdComponentAPI.getMessageManager().reportException(e.getMessage(), false );
e.printStackTrace();
}
-
public void Restart( )
{
//@@begin Restart()
wdComponentAPI.getMessageManager().reportSuccess("window.top.location.href=\"/irj/portal\"");
//@@end
}
Please Advice.
Thanks
Sony
User | Count |
---|---|
93 | |
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.