Change the language (locale) of the Portal

Hi everybody,
I have to implement internationalization in my Portal.
I do it throws bundle resources in my iview and throws Portal Content Translation for workset name.
But now, I need to implement a iview in which there are 3 flag (english, french and german for example) and when a user clicks on one of these, this changes the Portal language.
Do someone know how I can do that?
I think I have to change the locale of the session on the button clic but I don't find how to di that ..
Thanks,
Fabien

> Hey i used "if(language.equals("EN"))" coz some times
> there is the need to implement all the languages say
> English, german, etc...
Of course it is, this is the whole sense of a ResourceBundle...
http://java.sun.com/j2se/1.4.2/docs/api/java/util/ResourceBundle.html
In portal components it's even simpler, just declare the bundle in the portalapp.xml and read strings as described here:
http://help.sap.com/saphelp_nw04/helpdata/en/97/cd1e400191f72ee10000000a1550b0/frameset.htm
What Fabien needs, is a component placed on the framework page that changes the user's locale.
This is an example coding to change the language to french:
public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
try {
IUserMaint mutableUser = userFactory.getMutableUser(request.getUser().getUniqueID());
            mutableUser.setLocale(Locale.FRENCH);
            mutableUser.commit();
} catch (UMException e) {
// TODO Auto-generated catch block
e.printStackTrace();
Regards, Karsten

Similar Messages

  • Language of Webdynpro after changing the Portal Language

    Hi All,
    Even after changing the portal language from for ex. English to French, the webdynpro is still displayed in English language.
    If this session (portal window) is closed and new portal session is started, then the webdynpro is displayed in French.
    Also please note that, for iviews built using Portal HTMLB (like JspDynPages), restarting the session is not necessary.
    Any answer/solution/pointers/SAP Notes supplied is greatly appreciated.
    Regards,
    Rajit

    Hi,
    Refer to SAP Note 947081 about Internationalization
    The Blog at /people/bertram.ganz/blog/2007/01/08/the-top-12-hottest-sap-notes-every-web-dynpro-java-developer-must-know talks about this Note.
    3rd point mentions about "Language change in the portal (through portal personalization) does not get immediately reflected in the Web Dynpro iViews?"
    Hope this solves your query.
    Kind Regards,
    Nitin

  • How to change the Portal Password using a link from Web dynpro application

    Hello Everybody,
    I have a requirement to change the user password from a web dynpro application which is available on a mobile device. Firstly User will log into the portal through a mobile device and after getting authenticated user will be redirected to the mobile application. Within this mobile application there will be a link to change the login password(Portal login). Can somebody tell me how can i change the portal login password from a link available within the mobile application. Looking forward for a suitable reply.
    Thanks to all,
    Regards,
    Saby.

    Hi Maksim,
    Thanks for your reply..but i would also like to know can we directly use the Change Password Iview "persoUserPassword" from the portal. Can i directly Pass the URL of this iview from the portal to a "Change Password" link in the web dynpro application, so that when the user click this link he should be able to see this Iview on his/her mobile device and should be able to change the password from there. But i dont know whether this iview will appear properly on the mobile device or we have to have a custom web dynpro application for this purpose...Please reply with a suitable answer.
    Thanks in advance.
    Regards,
    Sarabjeet Singh.

  • How to change the portal user id 's assigned employee in ESS configuration

    Hello Gurus,
        I now have a question related to ESS configuration. I want to know how to change the Portal user's pernr assignment in the ECC 6.0 system. Somebody had actually assigned my portal user ID a PERNR in the ECC 6.0 system. But now, for test purposes, I want to change the PERNR assignment to something else for my portal user id.
    Could any of you please guide me in doing these steps?
    Points will definitely be awarded for helpful answers.
    Thanks gurus in advance for your help.
    ~~LB

    Hi Leena,
    You can create a new user name with the username and password assigned to it, with the transaction SU01.
    Ex : ESS_USER1
    Go to transaction code : PA30.
    Enter the pernr you want to assign to the user ESS_USER1 that you have created earlier.
    Enter infotype number : 105
    Now go ahead and click on the change button.
    And assign the user name as ESS_USER1.
    Then the pernr number will be assigned to the ESS_USER1 that you have created.
    You can check the same when you go to the HRUSER transaction code.
    Please let me know if you still have any issues on the same.
    Cheers.
    Sandeep

  • Changing the portal banner with customized banner!

    Hi Friends,
    I want to change the portal banner with customized banner with logo. So for that, I created a customized banner and named as bg_banner.jpg by renaming the original as bg_banner1.
    I modified them in both paths
    D:\OracleBI\web\app\res\s_oracle10\b_mozilla_4\ and
    D:\OracleBI\oc4j_bi\j2ee\home\applications\analytics\analytics\res\s_oracle10\b_mozilla_4
    Also restarted both Presentation Services and OC4J
    But still, I'm unable to view my customized banner instead I see the original LOGO missing. But able to view the rest of the banner with standard dashboard links.
    Please correct me, where am I missing and do the needful.
    Best regards
    User622248

    Use a copy of the original and paint in this.
    Than replace it there:
    \bi\web\app\res\s_oracle10\b_mozilla_4
    \bi\web\app\res\s_oracle10\b_mozilla_4\rtl
    \bi\oc4j_bi\j2ee\home\applications\analytics\analytics\res + rtl.
    Perhaps you forgot the \rtl\ banner?
    Regards,
    Stefan

  • Changing the Portal Navigation structure

    Hello everyone,
    I am also trying to modify the Portal general look and feel. I want to change the portal navigation structure (not just the themes and templates) the way first and second level navigation has been arranged. Do you have any idea as to how to do this?
    One example could be, can I center all the second level navigation items. Can I modify the tab separators etc.
    Would appreciate any help.
    Regards,
    Deepak Shankar

    hello
    Refer following links for portal login page change..
    Portal Customizations Intro - Login Part 1
    Portal Customizations Intro - Login Part 2
    A fast and easy Portal logon page customizing
    <b>Customizing the Logon Screens</b>
    http://help.sap.com/saphelp_nw04/helpdata/en/23/c0e240beb0702ae10000000a155106/frameset.htm
    <b>Changing the authschemes.xml File.</b>
    http://help.sap.com/saphelp_nw04/helpdata/en/1a/3afd4e641b8f42ac07bb77fe30375b/frameset.htm
    <b>Display Animated Logo in the Portal Login Branding Image dynamically: </b>Display Animated Logo in the Portal Login Branding Image dynamically
    Display Animated Logo in the Portal Login Branding Image dynamically: Display Animated Logo in the Portal Login Branding Image dynamically
    The standard logon component containing the code and resources used by the logon screens is shipped in a portal archive (PAR) file named com.sap.portal.runtime.logon.par.
    Import the par file as a project in NWDS. Browse through the tree structure of the project. In the PORTAL-INF folder, various jsps are available.
    1)umLogonPage.jsp
    2)umLogonCertPage.jsp
    3)umResetPasswordPage.jsp
    4)changePasswordPage.jsp
    5)umHelpPage.jsp
    6)umLogonProblemPage.jsp
    7)umLogoffPage.jsp
    8)umLogonTopArea.txt
    9)umLogonBotArea.txt.
    Inorder to change the images, text in the logon page you need to edit Files 1,8,9
    The SAP logo is referenced in umLogonBotArea.txt as sapLogo.gif.
    The branding image branding-image.jpg is referenced in umLogonBotArea.txt.
    Edit the images name in these files and put your new images in the layout folder of the project.
    If u want to remove the " register now" option in the logon screen, remove the self registration tag in the umLogonPage.jsp
    Cheers..
    Chinmaya
    Reward for helpful answers

  • Changing the Portal's UWL Approval Buttons from English to German Language

    Dear SAP Peeps,
    In the portal's universal worklist, the approved and rejected buttons needs to be change into its corresponding german language.
    I've log on to the SAP development system in german language and make the necessary change in the workflow. But when it is transported to the test system, the change doesn't reflect. I'm not sure if this is the correct solution as upon checking the portal, wrong text descriptions still appears upon creating a new work item.
    Can you help me here?
    Thanks in advance!

    Hello, luisanna107. 
    Thank you for visiting Apple Support Communities. 
    Here is some information that you may find help helpful.  Please note that not all movies include the option for multiple supported languages.  You may also want to see if German subtitles are available. 
    iTunes: Language settings for video
    http://support.apple.com/kb/HT5562
    Cheers,
    Jason H. 

  • Changing the Portal Title

    Hi,
    In the portal logon screen is it possible to change the WELCOME to WELCOME Quality OR WELCOME Production kind of thing.  If so Plz suggest me how to do.  This is very urgent and important requirement.
    Thanks
    naveen

    HI
    ya you can change the text header/footer anything on logon screen for that you have to download 2 .jar files which are: umelogonbase.jar & com.sap.portal.runtime.logon_api.jar.
    do the changes in these .jar file there are different languages you have to choose English language file as there will be different languages available change the text according to your requirements save it then add these files to your logon.par file project in NWDS (Plz remember you have to add these files in LIB folder)& save deploy your project & the required text will get changed.
    Priyanka
    PS: kindly do reward Points

  • How to change the portal role presentation based on users BW authorization?

    Hello,
    I have created 3 BW Roles, each one contains an iView with a certain report.
    For simplicity let's name the Roles A,B,C and assume that in order to see the proper report the user needs to be assigned to the matching group (A,B,C) at the BW side.
    I have imported these 3 roles to the portal as worksets, created new pcd role, placed these 3 worksets inside the new role and assigned this role to a certain group of users in the portal (these users are ABAP users so they are the same at the BW side as well).
    What I would like to do is this: I would like that each user that I have assigned this new role to will see only the worksets that he/she allowed to see based on it's BW authorization. Meaning, if I have been assigned roles A and B at the BW I will see only worksets A and B inside the role.
    The problem is this: From the portal I cannot assign the users to the BW groups and from BW I cannot control pcd roles so this kind of change requires me to make two modifications: One for authorization from the BW and one for presentation from the portal. I would like to manage it just from one place, either from the BW or from the portal, I don't care.
    How can I achieve this?

    I think I have found a solution: Export it as a role instead of a workset and do one to one assignments with the BW groups.

  • How to  change the Portal Exception  from the page

    Hi Experts,
        I want to remove  the exception symbol in Portal.If no roles were assigned to a user you will get a page  displaying that " No roles are assigned to the user please contact System Admin ".I have customizied this page ,changed the string (com.sap.
    portal.navigation.portallauncher.par.).But now I want to remove the exception symbol (Red) from the page.Is it possible to remove  the exception symbol  only for the particular page?Can  any one please guide me.
    Thanks&Regards
    Alexi

    To redirect HTTP to HTTPS
    http://help.sap.com/saphelp_nw04/helpdata/en/b8/437d46d4451e4c9ab756e272a1581d/frameset.htm
    Please check this link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/197e6aec-0701-0010-4cbe-ad5ff6703c16
    http://help.sap.com/saphelp_nw04/helpdata/en/e0/48e13a1522a441e10000000a11405a/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/964f67ec-0701-0010-bd88-f995abf4e1fc
    Cheers!!
    SJ

  • Changing the portal URL of EP 6.0 SP 9

    Hi,
    our portal runs on an windowshost. At the moment we access the portal through the windows hostname. but we need to change the url to an internet address.
    My question where can i configure the url the portal uses in his links? Where can it be set up or does it just use the windows related hostname ?
    Cu

    Hi Francesco.
    You will have to use a reverse proxy such as SAP IISProxy or Apache to use a different URL then the one the portal uses internally.
    If you setup a DNS record that points to the Windows server, you could run into trouble with SSO and KM.
    There are many threads about this in the SDN, try to search for "external facing portal" or "reverse proxy".

  • Change InfoView language (local) from URL

    Hi Everyone,
    We have a portal and in the portal we can click on a url to access InfoView. But in case the user change the local on the portal to view in another language like Chinese and when he/she clicks on the url to access InfoView. InfoView will display in English for Ex.
    Do we have any way to put the local to the url of InfoView to change the local of InfoView. I know we can do it in the Preference but now my manager want to change it via a URL.
    Thanks & Regards,
    Anh Phan

    Hi VS,
    thanks a lot for helping me here and sorry for delay in responding. I tried the solution provided by you. I developed one one view with a combo box & a button. And another view with just a sample text view. In the next view I duplicated the view.xlf file and pasted with _de.xlf extension for german. I copied your code snippets into wdDoModifyView and in the onActionGo methods. But after that when I select Deutsheland from the list box and press Go - nothing happens. The plug is also not firing. Most probably due to the forced log off. I also tried having some text in the first view itself and creatring _de.xlf file for the same. But didnt work. Its still picking the default english language text only. Can you please guide where I am doing wrong here?
    Also - is it possible to have the same functionality without the combo box but from a URL parameter? My current application is integrated in portal. So I type in mycompany.com as the url. Now if I type in mycompany.com?locale=DE will I be able to get the value and process it as you mentioned from the combo box value? Please guide.
    Regards,
    Shubho

  • Possible to change the Portal Timeout webpage?

    We have set it up so our portal users timeout if they have been inactive for 30 min. The problem is when the comeback from a period of inactivity, click on a link, and then are redirected to a webpage informing them that their session has timed out it gives them links back to oracle. I do not wish for my users of our website to be given this oracle timeout page with links to our oracle system. I would rather provide my own webpage informing them that they need to go back and re-login. Is there a way to do this?

    If you have Multi-Cloud installed, you can see an example of this in the MultiCloud_Platform_Handler JavaScript (triggered during form load) where the Multi-Cloud dictionary is moved to the top of the form:
    if   (ServiceName == 'Add Network')  {    // Re-order the dictionaries on the form    var MultiCloudNetwork_Element = document.getElementById("MultiCloudNetwork.DictionaryTable");    var VLANInstance_Element = document.getElementById("VLANInstance.DictionaryTable");    var VLANCustomerInput_Element = document.getElementById("VLANCustomerInput.DictionaryTable");    VLANInstance_Element.parentNode.insertBefore(MultiCloudNetwork_Element  , VLANInstance_Element );     VLANInstance_Element.parentNode.replaceChild(VLANCustomerInput_Element  , MultiCloudNetwork_Element  );    VLANInstance_Element.parentNode.insertBefore(MultiCloudNetwork_Element  , VLANCustomerInput_Element );
    You should be able to follow this example.

  • Change the user portal  language by code

    Hi,
    I want to change the portal user language  by code .
    Untill the user sets the portal language the default is the browser/or application .....
    I want to write code that if the user didnt set the portal language ..then the language  is set to X.
    Any ideas ?
    Thanks.

    Hi,
    Try this....
    IWDClientUser user=WDClientUser.getCurrentUser();
                 IUser myuser=null;
                 myuser=user.getSAPUser();
    String userID=
    try {
         IUser myuser=userFact.getUserByLogonID( myuser.getUniqueName() );
         IUserMaint usermaint=userFact.getMutableUser(myuser.getUniqueID());
                    usermaint.setEmail(wdContext.currentContextElement().getVa_Email());
         Locale lc=new Locale("en");
         usermaint.setLocale(lc);
         usermaint.commit();
         } catch (UMException e) {
         wdComponentAPI.getMessageManager().reportException(e.getMessage(), false );
         e.printStackTrace();
    Regards,
    Srinivas

  • Changing the English language to Chinese in portal.

    Hi,
    For a particular system,my customer wants every description and WoCs should be in Chinese in the portal.So,i changed the language for that user in the backend.But when i checked in portal,i found that only WoCs are coming in chinese language and description for particular WoC is coming in English.
    Can you suggest me in this issue.
    Thanks & Regards,
    harshavarddhan

    Hi Harshvardhan,
    Just to share some of my expereince while working with translation.
    First of all, the portal that I am currently working on does have a customize iView to change the portal language.
    Basicaly the portal language is refelcted in
    User Admin -> Identity Management, you will notice there is a Langugae field for the portal user.
    This language setting has higher priority compare with the Internet option language setting in the browser.
    The JCO connection to R3 system, we leave it as blank, so that whenever portal user access to R3 system,the login
    language (sy-langu) will same as the portal language setting.
    Invalid the Metadata cache in
    System Admin->System config->Webdynpro console.
    Some of the data element and text element does not reflect immediately due to the meta data cache in the portal, you need to invalidate those related Meta data dictionary then the translation will reflect.
    Hope this will be helpful to you.
    Edited by: V. Kong on Aug 4, 2008 5:31 PM

Maybe you are looking for

  • My iPod touch isn't recognized by my iTunes.

    What do I do from here? I have already reset all settings on the iPod itself. Restarted the AMDS and even remove and reinstall iTunes, restarting the computer in between doing all of this. but ****!! nothing works!!

  • New laptop

    I got a new laptop. I'm having a problem with my ipod. I can't get it to sync with my laptop. It says The ipod is synced with another itunes library. Do you want to erase this ipod and sync with this itunes library? I don't want to lose all my songs

  • Trex6.1 http server service is not running

    Hi all, We installed SR1 with Trex.it worked fine.After that we upgrade to stack11.then Trex http server service is not working.We checked with TrexAdmin.py admin tool it showing red status.We tried all the options which was given in the Q&A of SDN f

  • One specific bbm contact not recieving messages

    I have this one contact that I'm not getting any messages from, yet they can read mine. I've deleted the contact, restarted my phone and closed all existing chats. This has happened once before, and fixed itself after 24 hours. Can anyone help? I hav

  • Environment variables of 9i  App server

    I have to configure few Environment variables in 9i App server. How can i do that. Also I want to view all the exisitng Env varibles. Thanks N