PORTAL MULTI-LINGUAL AND CHANGE LANGUAGE PROBLEM

I need to implement language change in portal. I can't use the standard Set Language portlet, because my language change mechanism should involve redirection to an other portal page. Is there any API I can use to implement language change behavior? (Example code would be greately appreciated.)
In some cases I need to force the language of some specific portal pages, regardless of the current language setting of the portal. Is there any way to achieve that? I've experience with the default language setting of the page groups, but I've found that the portal ranks this setting below the current language setting of the portal and the "Accept-Language" header of the browser request. I've been thinking of hacks like a servlet filter or an apache mod tricking with the headers (Accept-Language) and cookies (NLS_LANGUAGE) of the browser request, but that's not so clean. So do I have any options to force the language?

I think it's this answer comes late for you, but If anyone it's interested, we use (in version 10.1.4) this function:
PORTAL.wwctx_app_language.set_language(p_http_language => 'es-es',
                                                       p_nls_language => PORTAL.wwnls_api.SPANISH,
                                                       p_nls_territory => PORTAL.wwnls_api.TER_SPAIN,
                                                       p_requested_url => url);
Where 'url' is the url you want to come back.
Remember you can call any function/procedure by the url: /portal/pls/porta/squema.name_of_the_proc, where you have to substitute squema and name_of_the_proc by tyhe ones you need to call (don't forget privileges).
Good luck

Similar Messages

  • Key shortcut, issue, typing something in editing code and changing language going directly to snippets.

    Key shortcut, issue, typing something in editing code and changing language going directly to snippets.
    So the problem is that I have to click in the editing code again to write in different language, which it didn't happened before.
    Just in case of shortcut keys collision I completly removed the shortcut of snippets from shift+F9, nothing changed. I really can't understand why when I press Alt+Shift to change language it goes straight to the snippets.
    If anyone can help would save me from nervous breakdown! 
    Thanks,
    GKD

    Since this appears to be a "just started happening" issue, have you tried clearing the program cache?
    Deleting a corrupted cache file
    That tends to catch a lot of weird behaviors and straighten them out.

  • Openoffice spellcheck, changing language problem

    Hi, when I change language to english in the spellcheck dialog (F7) in openoffice writer, it goes back to norwegian for the next word. I tried to change standard language (in options) til english, but still this happens.
    I have both openoffice-spell-en and openoffice-spell-no installed. and I can se that the english spellcheck is available.
    Any solution to this?

    This may be by design, it uses the language that the word has been set to use. For example if you have four misspelled words on a line, but change the language for each one to different languages, when spell checking [F7] it will alternate between each language for each word.
    So the best thing to do is set the language for the text. Format / Character / Font / Language

  • Changing language problem

    i bought a blackberry playbook how can i change the language to an arabic language and thanks

    Language can be changed by going to the Settings menu (gear icon, top right corner of the home screen), choosing the Language tab and change it on the dropdown menu, on the right.
    That said, Arabic isn't yet listed as an option, I'm afraid.

  • ESS Travel and Expense Language Problem

    Hi ,
    I have a strange problem with the travel and expense langauge in the project.
    Iam trying to add new messade id keys with values in the project esstratres~sap.com.
    I have to add these message id keys with values in english,french,german and spanish.
    I have added tmy custom keys in the respective .xlf language that come with the standard software component.
    Now my problem is when i change the browser language to english the language of t&e changes without any problem in english.
    When i later add the keys to fr,de,es files and try to change the browser language and view the content it only displays me the language of the last changed file for the whole portal application including the standard content.
    So in my case if i add key to fr and de first and then at last i add content to es .Now when i test the language set to french it displays the whole travel and expense application in spanish,the same happens if i select german.
    If i make changes to german at last and test the content it displays german in all the other browser langauges selected.
    We have set the JCO language to blank for displaying the portal content as per the browser language.
    Note : This happens to both my custom message id's as well as the standard generated message id's.
    Edited by: EPPROG on Jan 30, 2010 1:12 PM

    Hi Muhammed,
    First rule of development with NWDI is always test your changes locally before checking them out. Deploy this on your local J2EE Engine and see if the fields have been removed if so then check the deployed version changed date to see if this is in sync. you can see this in the System Info area http://localhost:50000/systeminfo.
    Regards,
    Raj

  • Localization and change language action

    Hi, I am facing the following problem... I wish to provide a web application with the option of changing the language. I have included two bundle.properties files (bundle_en and bundle_el) and both of them work fine when changing the default language in by browser. However I cannot change the language at runtime with a command button i have added. This is the relevant code..
    faces-config.xml
    <application>
    <message-bundle>javaserverfaces/Bundle</message-bundle>
    <locale-config>
    <default-locale>en</default-locale>
    <supported-locale>en</supported-locale>
    <supported-locale>el</supported-locale>
    </locale-config>
    </application>
    <managed-bean>
    <display-name>LanguageSelect</display-name>
    <managed-bean-name>LanguageSelect</managed-bean-name>
    <managed-bean-class>org.netbeans.javaserverfaces.LanguageSelect</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    header.jsp
    <h:commandButton value="#{msg.LanguageButton}" styleClass="language-select-button" actionListener="#{LanguageSelect.changeLanguage}"/>
    LanguageSelect.java
    public class LanguageSelect implements ActionListener {
    /** Creates a new instance of LanguageSelect */
    public LanguageSelect() {
    public void changeLanguage(ActionEvent event) {
    FacesContext facesContext = FacesContext.getCurrentInstance();
    Locale locele = (Locale) facesContext.getViewRoot().getLocale();
    System.out.println("setting locale to English");
    facesContext.getViewRoot().setLocale(new Locale("en"));
    String viewId = facesContext.getViewRoot().getViewId();
    int lastSlash = viewId.lastIndexOf("/");
    try {
    facesContext.getExternalContext().redirect(viewId.substring(lastSlash+1));
    } catch (IOException ex) {
    ex.printStackTrace();
    System.out.println("locale set to English");
    public void actionPerformed(java.awt.event.ActionEvent e) {    }
    Any help would be appreciated, thanks...

    I think it's this answer comes late for you, but If anyone it's interested, we use (in version 10.1.4) this function:
    PORTAL.wwctx_app_language.set_language(p_http_language => 'es-es',
                                                           p_nls_language => PORTAL.wwnls_api.SPANISH,
                                                           p_nls_territory => PORTAL.wwnls_api.TER_SPAIN,
                                                           p_requested_url => url);
    Where 'url' is the url you want to come back.
    Remember you can call any function/procedure by the url: /portal/pls/porta/squema.name_of_the_proc, where you have to substitute squema and name_of_the_proc by tyhe ones you need to call (don't forget privileges).
    Good luck

  • App store and itunes language problem and restoring phone

    Hi, I recently purchased an iPhone 3G 8GB off of eBay. The phone is unlocked and jailbroken. I want to remove the jailbreak and have a normal iPhone, but still have the phone unlocked. The phone is a Rogers phone and the carrier I am usign is Fido. I have heard that if I try to restore the phone, it will be bricked, and also that I will not be able to unlock it ever again if I do manage to restore it. What do I do? Because I really want to get the phone back to its normal settings. Secondly, my app store and itunes menus are in french. ( the bottom dark gray area where it says selection, search, update etc.)But the description of the apps and thir names are in English. Same for iTunes. I bought the phone from a man in Quebec. I changed the language to English, and the region to Canada, and have tried rebooting the phone and syncing it with my iTunes. But the app store and iTunes bottom menus are still in French. Any help would be appreciated, thanks.

    ferrari91 wrote:
    I want to remove the jailbreak and have a normal iPhone, but still have the phone unlocked.
    You cannot. If you need to use the phone with Fido, sell it and buy a Fido-locked phone. Since jailbreaking violates Apple's EULA and voids the warranty, the only advice you can obtain here is to sell your phone, or restore it and get service from Rogers.
    Secondly, my app store and itunes menus are in french.
    A restore will fix this.

  • Multi-select and change only certain words in a text box to different font - possible?

    In Word I can select a number of words in a sentence or paragraph by holding the Shift key (PC, natch!) and then bold all of them at the same time, etc. Can't make this happen in inDesign - am I missing something simple?
    Need to take a list like the one below and bold only the dates, using the bold version of the font I'm using - thereby actually changing fonts.
    June 1  Something
    June 25  Something else
    July 24  Something else entirely
    Thanks for any help you can offer.
    Joan

    Hi,
    John is right.
    However, I advise you to take a look at HighlightGrep, [JS] written by Roland Dreger, with an amazing "Live Mode" option that allows you to see the result of a research (before launching it, of course) while you're building your query … simulating your "selection".
    … and, as john said, may be finish the deal with nested styles !

  • Multi-lingual javascript support

    Hi all,
    I am facing a problem trying to make my site multi-lingual. I have made necessary changes in my database to handle multi-lingual data, but the problem is how do i check the data entered by the user in any language other than english at the client side itself.
    Has anyone worked on this or does anyone has material regarding how to support multi-lingual javascript validations.
    thanks in advance
    Abhi

    Wrong forum and cross posted as well.....
    http://forum.java.sun.com/thread.jsp?thread=549121&forum=45&message=2678057

  • Factory reset change language italy to englise

    I need factory reset  and change language my computer because all original programe  missing and wont change  language   i cannot understand italy language  please help me  thanks

    sisira wrote:
    I need factory reset  and change language my computer because all original programe  missing and wont change  language   i cannot understand italy language  please help me  thanks
    Your laptop came wirh Windows 7 Home Premium. Changing display language legally is not possible unless you get an option during start of install. But in an OEM laptop chances are that you've to live with the language Windows came with from factory.
    Please read this: Windows 7: Can I change the display language in Windows 7 Home Premium ? 
    Regards
    Visruth
    ++Please click KUDOS / White thumb to say thanks
    ++Please click ACCEPT AS SOLUTION to help others, find this solution faster
    **I'm a Volunteer, I do not work for HP**

  • How do I change language back to english from japanese on iPhone 4 iOS 5?

    I'm testing an application's language support and changed language from english to japanese on my iPhone 4 w/ iOS 5 installed. I can not figure out how to change the language back since I do not speak japanese and the interface options are different in japanese.

    Nevermind this. I found my answer much faster elsewhere. Come On PEOPLE!
    If you are looking for an answer to this question you will find it at the link below.
    http://www.askdavetaylor.com/change_iphone_4_from_japanese_back_to_english.html

  • Problem: Changing Language for Web Dynpro Java within NW Portal (i18n)

    Hi Experts out there,
    I hope all you had a nice Christmas and a big New Years Eve :)!!!
    i got a challenge for you about WD Java and internationalization (i18n)
    Here is the scenario:
    We are using a SAP NetWeaver Portal 7.0 and my task is to implement some smaller Web Dynpro  Applications.
    These Applications must be i18n conform, so i just created (according to the corresponding WD Java tutorial) some ".xlf" files.
    Okay...Everything is working fine. The user can log at the portal and the application is displayed in his language, which is "english" or "german". (the application is just a simple form)
    So far so good...Now here comes the point where it's getting tricky...
    When the user wants to change his assigned language (of the portal user) he can use the "personalize" button in the Masthead (-> change portal language). All the portal content should now be displayed in his new chosen language.
    For example the user is logged into the portal with "german" as portal language and now changes his languages settings into "english". After this everything in the portal (navigation, portal iViews ) is displayed in the changed language (from english into german) ...
    BUT: my Web Dynpro  Java Application stays as the original languages setting was. That means the whole portal is now english, but my WD Java Appl. stays german .
    Only if the user logs of and logs in again, the WD Java Appl. is displayed in the corresponding portal language...
    VERY Strange?!?!
    Can anybody give me a hint how to solve this problem?
    I guess i have to re-initiate the Web Dynpro  Application some how ...(like killing the application and restarting it ...) but is just a "weak guess"...
    Any Help / Hint is more than welcome !!!
    Cheers
    Stefan

    Hi Stefan,
    This correct see SAP Note [947081|https://service.sap.com/sap/support/notes/947081]
    If the locale for the Web Dynpro iView is changed in the portal (through portal personalization), this is not reflected in the running login session. The user needs to logoff and login again, in order to see the locale change in the Web Dynpro iView.
    Regards,
    Leo

  • Web Form Validation Message Language Setting at Runtime when work in multi lingual environment

    Business Catalyst use the default culture language to display web form validation message.
    When we are in multi lingual environment and not using subdoamin to handle multilingual sites, we found that the validation message did appear in the default culture setting. To make this work, we need to add the below script in our template.
    <script type="text/javascript">
    $(document).ready(function(){               
    var head= document.getElementsByTagName('head')[0];
    var script= document.createElement('script');
    script.src= '/BcJsLang/ValidationFunctions.aspx?lang=FR';
    script.charset = 'utf-8';
    script.type= 'text/javascript';
    head.appendChild(script);
    </script>
    Assuming the template is in french. You can change the lang parameter in the script according to your language.

    After user 1 submits the page, it might not even be committed, so there is no way to have the pending data from user1 seen by user2.
    However, we do have a new feature in ADF 11g TP4 that I plan to blog more about called Auto-Refresh view objects. This feature allows a view object instance in a shared application module to refresh its data when it receives the Oracle 11g database change notification that a row that would affect the results of the query has been changed.
    The minimum requirements in 11g TP4 to experiment with this feature which I just tested are the following:
    1. Must use Database 11g
    2. Database must have its COMPATIBLE parameter set to '11.0.0.0.0' at least
    3. Set the "AutoRefresh" property of the VO to true (on the Tuning panel)
    4. Add an instance of that VO to an application module (e.g. LOVModule)
    5. Configure that LOVModule as an application-level shared AM in the project properties
    6. Define an LOV based on a view accessor that references the shared AM's VO instance
    7. DBA must have performed a 'GRANT CHANGE NOTIFICATION TO YOURUSER'
    8. Build an ADF Form for the VO that defined the LOV above and run the web page
    9. In SQLPlus, go modify a row of the table on which the shared AM VO is based and commit
    When the Database delivers the change notification, the shared AM VO instance will requery itself.
    However that notification does not arrive all the way out to the web page, so you won't see the change until the next time you repaint the list.
    Perhaps there is some way to take it even farther with the active data feature PaKo mentions, but I'm not familiar enough with that myself to say whether it would work for you hear.

  • Change multi-lingual text for equipment

    Hello,
    I'm trying to change some equipments fields, which are covered in BAPI_EQUI_CHANGE but also update multi-lingual text that can not be updated through this BAPI.
    Is there any other BAPI or FM to update the equipment text?

    Hello,
    There is no separate function module or BAPI for this.
    We have used function modules INIT_TEXT and SAVE_TEXT for this.
    These are generic routines that can be used for all long texts in all languages.
    You always need following key fields for a long text : ID, LANGUAGE, NAME and OBJECT
    To find out these values check one of  your manually created equipments (check header of one of the long texts).
    Also check function group STXD for other usefull function modules.
    Wim

  • Selecting OS language for multi-lingual systems

    Hi,
    I just got a T400 yesterday, which was supposed to include a multi-lingual version of XP (English/Swedish/Finnish). However, I never got the choice at startup to choose language, and it defaulted to swedish. I have already tried to restore the system to factory defaults from the Rescue & Recovery partition, but also then I didn't have a choice.
    Is there anyone who knows how I can switch OS language to english, or, is there any way to check that my version is indeed multi-lingual?
    Thanks in advance,
    Per

    Have you tried Control Panel / Regional settings / System Locale yet?

Maybe you are looking for