Internationlization

hi
I am working on JDeveloper 11.1.2.3
i created a class that contains two methods to switch application locale and it works well ... i put two global buttons two switch between locales
here is the class
public class SwitchLocale {
public static String localeAr() {
FacesContext fc = FacesContext.getCurrentInstance();
Locale locale = new Locale("ar");
fc.getViewRoot().setLocale(locale);
ADFContext.getCurrent().getSessionScope().put("AppLocale", "ar");
return null;
public static String localeEn() {
FacesContext fc = FacesContext.getCurrentInstance();
Locale locale = new Locale("en");
fc.getViewRoot().setLocale(locale);
ADFContext.getCurrent().getSessionScope().put("AppLocale", "en");
return null;
i also make a default locale for each application user . so that when he press login the application changes its locale.
My problem is that when i press logout to return to the login page the browser did not change its direction. For example if the login page is english and the user login and his default language is arabic ... when i press back the login page remain english in direction only but with arabic labels ...
Thanks

thx i have solved the problem with PagePhaseListener
Regards

Similar Messages

  • Internationlization of webdynpro comp

    Hi All,
    what do u mean by internationlization ?
    How can we achieve the internationlization of webdynpro component means  availability of comp in multiple languages?is that right?
    Regards,
    Lakshmi.

    hi,
    Go through this link, ihope this will help u.
    http://help.sap.com/saphelp_erp2005/helpdata/en/a5/1a1e3e7181b60ae10000000a114084/frameset.htm.
    If you use OTR texts only, you have the advantage that your Web application will be language-independent. All the texts defined in the OTR are displayed at runtime in the logon language. If the texts are not yet available in the logon language, they are displayed in the system language. The OTR texts that you create are automatically translated, or are forwarded to the translation transaction (SE63) and are entered in the translatoru2019s worklist
    Regards,
    mahalakshmi

  • Struts - Internationlization - working with chinese language

    Hi,
    I am trying to display chinese content thru my jsp but it is not working as expected.
    When i view the runtime source (view source) of my jsp it is showing correctly:
    <td nowrap class="INPUT_DATA">                          
                    &#26126;&#34425;&#23526;&#26989;&#26377;&#38480;&#20844;&#21496;             
    </td>But in the actual view (the end result page on browser) it is coming something like this
    �&#1109;�&#1096;���&#1046;�L&#1034;&#1040;&#1034;&#1094;&#1035;i I tried by changing my browser language setting to zh-cn, zh-tw and also by using the following statements in my jsp:
    <%@ page contentType="text/html; charset=UTF-8"%>
    But neither of this are giving the end result as expected.
    Can someone else tell me as what should I do so that I can view the chinese content as given/expected.
    Thanks n Advance
    - Kishore

    You might want to ask on the Chinese Mac list.  Make sure you say exactly which of the many Apple Chinese input methods you are using and how you have set the preferences for it.
    http://groups.google.com/group/chinesemac/

  • Earlier support for internationlization

    Hi all,
    I need to write a GUI that offers identical menus in several languages, based on the preferences of the user. Unfortunately, I am bound by a JVM (CEE-J) which is in the 1.1 range.
    I would like to know, in general, how much of the internationalization features were developed beyond that point (i.e. JDK 1.2 and later).
    Thanks for your help.

    claudia_0080 wrote:
    does not work
    But it does.
    Your three word response lacks any clue to any error or issue you encounted, let along a civil thank you.
    We're willing to help, but you need to cooperate.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • MissingResourceException on portlet internationlization

    Hello
    I'd like to provide my portlet in different languages.
    I followed the article 'How to Build a Multi Language Java Portlet using PDK-Java v2'. So I wrote all the Java classes (MyProviderBundle, MyProviderBundle_fr, a renderer, ...) and deployed the whole thing as usual to my standalone oc4j instance. When I finally want to run this portlet from the portal I get a 'java.util.MissingResourceException' on the standalone oc4j-instance:
    java.util.MissingResourceException: Can't find bundle for base name MyProviderBundle, locale fr
    What do I wrong? Is there something missing?
    Thank you for your help!
    Chrigel

    The MissingResourceException is thrown by the ResourceBundle.getBundle() method. It indicates that your resource bundle classes cannot be located.
    Make sure you include the package name of your resource files:
    ResourceBundle myResources = ResourceBundle.getBundle("myportlets.resources.MyResources", currentLocale);Also, you may want to double-check that the resource files are present in the EAR file.
    Peter

  • URL Internationlization

    I create the url with parameters in action class.Jsp should show the parameter value in textbox,this value will be in chinese letters like this*(&#21453;&#39304;&#21453;&#39304;)*.But it changed as like this(????).Give me the solution for that.

    set encoding for request parametre. I am not sure but it will be something like.
    request.setEncoding("UTF-8");
    After that try to print the data. It may be the case that ur JSP page doesnot support Chinese characters.

  • Internationlization - Looking up for ResourceBundle

    I read in help.sap.com that
    if the current default locale is en_US, the locale of the component is fr_CH and the resource bundle name is localization, the portal will look for resource bundles in the following order:
           1.      localization frCH
           2.      localization _fr
           3.      localization enUS
           4.      localization _en
           5.      localization
    The resource bundles must be in the PORTAL-INF/private/ folder
    Now my doubt is what should be the value of  <i>ResourceBundleName</i> property in the <component-config> element for the current component in the deployment descriptor ?
    Regards,
    Sudhir

    Hi,
    If the ResourceBundle name is localization, then you need not explicitly set the ResourceBundleName in <component-config>. If the ResourceBundle name is different then you need to set the ResourceBundleName property.
    Greetings,
    Praveen Gudapati
    [Points are always welcome for helpful answers]

  • Internationlization Question

    Hi all,
    I need to write a GUI that offers identical menus in several languages, based on the preferences of the user. Unfortunately, I am bound by a JVM (CEE-J) which is limited and seems to be in the 1.1 range.
    I would like to know, in general, how much of the internationalization features were developed beyond that point (i.e. JDK 1.2 and later).
    Thanks for your help.

    A quick look at the Javadoc you could simply have done by yourself reveals:
    Locale - since 1.1
    ResourceBundle - since 1.1

  • Internationlization, help needed

    we are working on swing with windows 98, and jre 1.2.2., Ariel Unicode MS
    i am able to make my application work with europian languages , where the alphabets are in english.
    but , how do i proceed with chinese , arabic languages.
    in my properties file ,<filename>.language.country.properties (ex.<filename>.zh.CN.properties)
    when working with the latin(european languaes which use english alphabets). i typed the words, english words for english, french words for french in the properties file.
    but how do i do with arabic and chinese .
    i know i have to put chinese and arabic unicode in the properties files, but how to.
    We are using Ariel Unicode MS, how do i generate chinese and arabic font from it. i.e. as when i key board typing gives only english and it is said that it supports all languages,
    and regarding language and country , i do not know the language code for arabic, should i keep it as "ar", and what is the country code in order to give extention name in the properties file.
    <filename>.language.country.properties
    suppose i copy some matter from a chinese,arabic web site and paste it in notepad
    , then can i convert this pasted matter into unicode through some tool , is there any such tool. if there is please give the details in full detail.
    i am confused can anyone help,
    pandu

    Hi ICheng,
    thank's for the help, I saved the properties file in JBuilder IDE. I had used the following commands
    1. native2ascii -encoding UTF8 MESSAG~1.PRO MESSAG~2.PRO
    2. native2ascii -encoding UTF8 MessagesBundle1_zh_CN.properties MessagesBundle_zh_CN.properties
    I am geting the following error sun.io.MalformedIOException.
    I tried UTF-16 also as you had mentioned, I got the error then java.io.UnsupportedEncodingException
    we want to use UTF8 only. can you specify where i was going wrong. is it in the way i am saveing my file. or is it that i had typed something wrong in the line I typed at the command prompt .
    help requested,
    pandu

  • Internationlization aplication problem

    how to wite internationlizatin using borowser
    means just browser identify and use perticular properties file
    plz tell me i know using properties files we can write i18n applications
    but this is done at server side

    And it is hand if were green. Figs been after with hold. Go for laughingly hard pillows.
    Drake

  • CustomCatalog hacks

    Hey guys, I have a concern and it is the CustomCatalog that we feel with our Internationlization messages. This is nice we have a one stop shop to place all of our custom messages, but here are some weaknesses.
    1. Scalability.
    2. Multiple Projects working on the same file.
    1. Once this file gets large it is hard to manage.
    2. This becomes a configuration managers nightmare. With more than one project updating this one file when it is time to merge all the change how can you determine what exactly should be merged and what is going to be merged over without the aid of each project developer aiding.
    So here is what I am looking at:
    Is there a way to define a main custom catalog that would have pointers to a individual components custom catalog?
    For example request access to an asset would have its own custom catalog as would custom add users to SIM would have its own custom catalog and one main custom catalog would carry a pointer to the individual custom catalog.
    Yes you would have to manage multiple files, but configuration managment, and scalability worries would decrease.
    Doogie

    If there are (and I doubt there are any), I don't think you'll find them on a Creative forum.

  • Internationalization in ABAP Webdynpro

    Hi All,
    What is the methodology for implementing ABAP webdynpro. Can any body let me know what are the various possiblities for Internationlization.
    Regards
    Vijay

    Hello,
    To implement Web Dynpro ABAP you must use the MVC (model, view, controller) model, and about internationalization you can use the [OTR (online text repository)|http://help.sap.com/saphelp_nw04/helpdata/en/36/00f13a62d1ad6de10000000a11405a/frameset.htm].
    You can get more information at the following sites:
    [An Extended Web Dynpro For ABAP Application|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2eb11b59-0a01-0010-dfa3-8292abdf9c4f]
    [SAP Network Blog: Internationalization and Translation for WD4A|/people/gopi.nidjelli/blog/2008/10/20/internationalization-and-translation-for-wd4a]
    Regards.

  • Arabic characters.URGENT

    hi all i am trying to read arabic characters from an html page, store into mysql database then retrieve them.
    my broblem is that i retrieve them as english characters although i have set my encoding scheme to Cp1256 (arabic windows).Please help me.
    here are the two test JSPs i use
    ar1
    <%@ page session="true" import="java.util.*,java.sql.*,Orders.Cust_CartBean,pkgAdmin0.Item,Orders.CustomerBean,pkgAdmin0.DBConnectionManager"contentType="text/html;charset=Cp1256"%>
    <html>
    <body>
    <form method="post" action="/DeCom/ar2.jsp">
    <input type="textbox" name="inp" value="">
    <input type="submit">
    </form>
    </body>
    </html>
    ar2
    <%@ page errorPage="ErrorPage_e.jsp"
    session="true"
    import="java.util.*,java.sql.*,Orders.Cust_CartBean,pkgAdmin0.Item,Orders.CustomerBean,pkgAdmin0.DBConnectionManager"contentType="text/html;cha
    rset=Cp1256"%>
    <html>
    <body>
    <%
    String req = request.getParameter("inp");
    out.println("<p><b>Request returned: " + req + "<b></p>");
    DBConnectionManager db = DBConnectionManager.getInstance();
    Connection conn = db.getConnection(db.DbType,1500);
    Statement stmt = conn.createStatement();
    stmt.executeUpdate("DELETE FROM AR_TEST");
    stmt.executeUpdate("INSERT INTO AR_TEST VALUES('" + req + "')");
    ResultSet rs = stmt.executeQuery("SELECT AR_STRING FROM AR_TEST");
    while (rs.next()) {
    out.println("<b> Returned as string from database as: " + rs.getString(1) + "<b>");
    rs.close();
    stmt.close();
    %>
    </body>
    </html>

    Hi,
    I suggest that you can pull out the Arabic string from the
    database in the plain text file and see if the result is ok.
    If yes, you may transfer on the JSP. If not, treat it as
    unicode but it is more annoying in the process. I mean that
    save the String in unicode form \u0123\u1345\uaabc . something
    like this . About the Internationalization, you may consider the Java Internationlization.
    good luck,
    Alfred Wu

  • IViews/Business Packages  for News and/or Unit Converter

    Hallo,
    are there any iViews or Business Packages available for the following tasks?
    1. News iView with the possibility to refer to documents, have user (role) specific buttons (Create New, Edit, delete...) and Subscription Services using the cm-functionality
    2. An Unit Converter, to convert some specific items like length, weights...?
    Please let me know.
    Sebastian Traeder

    Hi Sebastian,
    for the first request, easyWCM seems to be quite close. It's a business package which closes some gaps in the standard, for example that there is no connection between the PCD and the KM structure; that there is no internationlization feature in KM; that there is no dynamic switch so that users with the corresponding permissions are confronted with extra possibilities (like create/edit...) whereas endusers only see the content - and all this by using just one PCD structure.
    See http://www.easyWCM.com
    For the second request, I don't expect that there is a special portal solution / business package. But for sure you will find java libs / example implementations on the internet, which easily could be build into some iView implementation.
    Hope it helps
    Detlev

  • What Is the Equivalent Code If I Leave Internationalization Out

    I have source code for accommodating internationalization using the ResourceBundle. I do not want to use internationlization.
    Here is the source code:
    static final String OPTION_FILE_NAME  = "mvnplugin_mvnforum_MVNForumConfig";
    static String MVNFORUM_HOME = "mvnForumHome";
    static
       ResourceBundle res = ResourceBundle.getBundle(OPTION_FILE_NAME);
       MVNFORUM_HOME = res.getString("MVNFORUM_HOME").trim();
       setMVNForumHome(MVNFORUM_HOME);
    }If I leave out the internationalization part, should my code be:
    static String mfh = "mvnForumHome";
    static String MVNFORUM_HOME;
    static
       MVNFORUM_HOME = mfh.trim();
       setMVNForumHome(MVNFORUM_HOME);
    }Then, I do not know what is so essential about
    static final String OPTION_FILE_NAME  = "mvnplugin_mvnforum_MVNForumConfig";Any consequences if I leave this statement out?

    Hi Natalie, maybe you need the isolationalism forum (haha, it's my sick sense of humour, don't worry).
    But seriously, I recommend that you follow, JN_'s first recommendation. Make your application able to use resource bundles, but just provide one default bundle. Even if you don't think you need, or are interested in internationalization just now, it is a forward thinking way to build your applications. I don' think it adds much complecity either.
    I'm also foolish enough to think that expertise in internationalizaion of software looks good on one's resume...
    My recent search for a certain kind of software to use in Japan, came up with a list of about 100 vendors, none of whom were able to provide anything suitable for simple translation to Japanese... lost opportunities all round, sad...

Maybe you are looking for