Change portal language via link

Hi,
I'm new to portal development. I've created custom link in the standard masthead. Like EN , when it's pressed the language of the user must change to english.
Anyone know how to write this in code?
Kind regards,
Jonas

thx
Edited by: Jonas Vanderkelen on Oct 27, 2010 1:31 PM

Similar Messages

  • Change portal language based on user selection in masthead7.3

    Hi All,
    I am trying to provide the language drop down option in Portal Masthead.
    I have created the Hovermenu in Masthead which displayes 2 options(English and German)
    When user selects German, the portal should be loaded in german language.
    Can you please guide me with the proper event handler which should be called, on clicking Hovermenu Item.
    Which URL should be called on clicking Hovermenu Item.
    I have checked some SDN links already.
    Regards,
    Sumangala

    Thanks for your answers.
    I have already checked those links.
    Now th problem what I am facing is,
    I am not able to call the function ChangeLanguage through javascript.
    I have created a dropdwon using Hovermenu and added English and German.
    Now when I click on these the function should be called.
    Please help me in getting how setClientSideScript() can be used to call a function.
    or any other way to call the function after clicking on Hovermenu Item.
    Thanks in advance,
    Sumangala

  • Activity space to change portal language

    Hello,
    I am trying to build an activity space that works as follows:
    In the page header I want to have a link that points to my custom activity space and that when clicked, will alternate the portal's locale between French and English and keep the user on his current page.
    This activity space will need to work for both guest users and logged in users.
    I have seen on previous posts that people have done this before but not enough details are ever provided to be able to figure out how to do it properly.
    Essentially I need an activity space without a view or display since the user is not taken to any page when they click on the link. It simply refreshes the page in the new language.
    Could someone provide me some guidance as to which Activity Space , Control and Model class I should be extending to be able to code this functionality since there are so many classes available and examples with most of them implementing a View class that I can't figure out what I need and how to setup the proper execution flow.
    No details are too much.
    Thank you from this confused newbie

    Hello DJ,
    When you get time would you mind provide short description (ideas) how to do this? I mean that may be useful for others if they need to do this in future.
    In aqualogic the same things can be done by different ways sometimes and you may have the best solution.
    Thank you.
    Dmitry

  • Changing BI Web Portal language

    Hi,
    Does anybody know how I can change the language settings in BI portal.
    thanks

    Hi bhat,
    can u please let me know
    how did u change portal language to english
    i to facing some problem as when user running query system/portal not converting it to english..
    only techical name are displayed at selection screen instead of variable discription
    and also no heading displayed at query output
    thanks in advance
    pavan

  • Change email language in 2 dedicate mode : portlet & application

    I am working about customizing Oracle Collaboration Suite .
    I want to change email language in 2 dedicate mode : portlet & application ,
    I have searched resource bundles for changing language and I have found two types of file,
    1. 11 steps to install an unsupported language translation into the Portal that changes portal language
    2. <%ORACLE_HOME%>\j2ee\OC4J_OCSClient\applications\ocsclient\ocsclient-web\10.1.2.2.0\application\labels          
    that changes email's panel.
    But changing these files, does not effect on the email application.
    so I have found a document that is about customizing Oracle Collaboration Suite
    in Oracle® Collaboration Suite Administrator's Guide.
    In this document there is comments for Customizing Oracle Web Access Client Resource Bundles,
    I tried to do its instructions but I couldn't go forward because when I run the perl script,
    I get access denid error for oracle_home.
    Any idea about where to look for this problem? or any tip?
    Best regards,
    Nasrin

    Hi,
    Did you consider posting this in the Collab Suite forums?
    http://forums.oracle.com/forums/category.jspa?categoryID=31

  • Change email language

    I am working about customizing Oracle Collaboration Suite .
    I want to change email language in 2 dedicate mode : portlet & application ,
    I have searched resource bundles for changing language and I have found two types of file,
    1. 11 steps to install an unsupported language translation into the Portal that changes portal language
    2. <%ORACLE_HOME%>\j2ee\OC4J_OCSClient\applications\ocsclient\ocsclient-web\10.1.2.2.0\application\labels          
    that changes email's panel.
    But changing these files, does not effect on the email application.
    so I have found a document that is about customizing Oracle Collaboration Suite
    in Oracle® Collaboration Suite Administrator's Guide.
    In this document there is comments for Customizing Oracle Web Access Client Resource Bundles,
    I tried to do its instructions but I couldn't go forward because when I run the perl script,
    I get access denid error for oracle_home.
    Any idea about where to look for this problem? or any tip?
    Best regards,
    Nasrin

    Hi,
    Did you consider posting this in the Collab Suite forums?
    http://forums.oracle.com/forums/category.jspa?categoryID=31

  • Federated Portal Language change not visible on remote role

    Hi,
    Remote role assigment is done on consumer portal. This remote portal role comes from a BI Producer portal.
    This roles has worksets and iviews attached to it like km navigation iview etc.
    User on consumer portal has options to change his language to french from default english.
    Here the issue is, this language change does not reflect or apply to the remote role and its iviews or contents.(It continues to show in english) . But it works without problem o n local roles or ivews as expected.
    Any idea on how this language change can be effected on the remote role and its contentc will be much appreciated.
    Regards,
    Ashok D

    Hello Ashok,
    You must remember that because this is RRA the content will actually run on the producer (unless this is an AI iView).
    This means that the language will be determine according to the user's language defined on the producer itself, therefor you have to change the language of that specific user on the producer portal.
    If this does not help it might be that the iView is forcing the language, then we'll have to try somehthing else.
    Update me with the results of the first triage,
    Also have a look at SAP Note # 1295703 under the Language category, it explains the algorithem of determining the language.
    Best Regards,
    Nadav.

  • Change the language of the links

    I have, reading instructions on the forum, mananged to change the font, size and colors on the links: "Back to album", "Play slideshow" etc. But I really want to change what it says - change the language of the links. Is this possible?

    What wyodor is saying is correct but remember that if you open that site in iweb again and you are on another language it will revert.
    I have a site that needs to be all in french, I use a second user account on my mac and I keep one account with the settings in one language and the other in french. It keeps me from having to change the user's setting all the time and also from opening the site accidentally in the wrong language. Just a suggestion in case this could work for you as well.
    Mireille

  • 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

  • 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

  • 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

  • Portal Language Iview

    Hi,
    I need to add portal language iview in the personalized link, Where can i get this language iview. This is required to change the language of the users.
    Regards,
    Sanjeev Mourya

    Hi,
    I am using EP 6.0 SP15
    Personalized page has been modified earlier, now I need to add local language iview or page in the personalize link.
    How to do it? If I check the standard role, I am able to see the local page, but when I check the delta link, It is not poing to the exact page, It is inhertited by defualt page and point to that page only.
    Please reply...
    Thanks
    Regards,
    Sanjeev

  • Change Browser Language with Javascript

    Hey
    I need to change the language of the user in the portal , using two small links , EN | PT  if the user clicks EN the browser language will be EN_US else pt_PT how can i do something like this?
    i'm looking for javascript solution mainly or anything else related to sap. thanks

    Hi,
    String user = null;
         try {
          user =
           WDClientUser
            .getCurrentUser()
            .getSAPUser()
            .getUniqueName();
         } catch (WDUMException e) {
          // fpm.getMessageManager().raiseException(wdThis.wdGetAPI().getComponent(), e);
    try{
    wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("user"+user);
    IUserFactory userfact = UMFactory.getUserFactory();
    IUserMaint userMaint = userfact.getMutableUser(user);
    userMaint.setLocale(Locale.FRENCH);
    userMaint.commit();
    wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("success");
    }catch(Exception e){
    Hope this code helps you.
    Cheers-
    Pramod

  • Portal language refresh / reload (user data source ABAP stack)

    Hello,
    I'm on SAP NetWeaver Portal 7.0 with user data source on ABAP stack.
    I'm trying to create simple JavaScript links for changing the Portal language.
    I was able to change the ABAP stack user's logon language by BAPI call.
    But the newly set language shows up only after the user logs out and logs in again.
    I know that in the WebDynpro for Java, which implements the UME user interface, there is a functionality, that allows that relogging of the user is not necessary. After setting the language you only refresh the browser page (F5) and the new language shows up.
    Does anyone know what function I should call, for the language refresh (could be the same as in UME standard WDJ)?

    Hi Andres,
    language doesn't change on the Portal. The content remains in the previous language.
    I know that the switching of Logon language parameter in the user profile in ABAP stack and logoff and login on the portal leads to change of the language on the Portal. But I don't know, how to do it without the relogging of the user.
    I change the Logon language in ABAP by AJAX call of BAPI.
    Thank you for any idea.
    Jiri

  • How to change the language of GP administration role ?

    Hello experts,
    I'm new of Guided Procedure.
    I assigned all of roles of Guided Procedure to my user,my user's language is
    Chinese, but the language of all of GP roles are English.
    I want to change the language, but it seems that I can't change the language of GP roles in User Administration.
    How to change the language of GP roles ?
    My Portal is EP7 SP6, and UME is integrated with BW DB.
    BR,
    Jianguo Chen

    Hi,
    Do you want to change language only for GP admin role?have you set portal language to chinese?if not then you can do this from following personalise link, but i guess your GP admin language has not changed.
    Regards,
    Ameya

Maybe you are looking for

  • Error publishing from Muse - "error updating device redirect setting"

    After recent upgrade of Muse I am getting an error message when publishing. The pages are published correctly but there is an error which prevents the final completion of the process. message = "Error updating device redirect settings click resume to

  • How do i fix my home button it has completely stopped working after i dropped it and now its frozen on the apple screen?

    so yesterday i dropped my iphone and the home key stopped working. i had to turn the phone completely off to change screens and get back to the home page. today i turned it off to get back to the home screen and now it is frozen on the apple screen.

  • Iweb not opening at all

    The application Iweb quit unexpectedly, Mac OS X and other applicatioms are not affected. Click Relaunch to launch the application again. I was working on a new website and downloaded and was testing out a bunch of new fonts, when i tried to open Iwe

  • Application memory issue

    Why is my iMac telling me that I'm out of application memory when I have 8GB of RAM installed?

  • Date_popup returning value to wrong row

    I have looked at the thread below and still cannot get my code to work Re: prevent certain rows in updateable report from being updated?? I have a tabular form that is used for a mass approval system for managers. In this tabular form the managers ar