How to set Application Language in JHeadstart Generated Applications

Hi Everybody,
We have developed an application using jheadstart 10.1.2 and (UIX/Struts/BC4J).
I have a table for users preference and I want to enable users to choose their desired language. For example, If user select "Arabic" as his preference, application becomes right to left and all prompts was shown in arabic but if he selects english every things changes to english. I don't want that my application change based on browser language. Is it possible ?
If it is not possible, is it at least possible to force the application to be shown in a predefined language and do not change based on browser language?
Any help would be highly appreciated.
Thanks in advance,
Navid.

Navid,
See this thread:
Re: Default Locale
Steven Davelaar,
JHeadstart Team.

Similar Messages

  • How to set the stack size for alchemy application?

    Anybody know how to set the stack size for alchemy application?
    If you know, please tell me how to adjust the stack size for alchemy application?

    Hi,
    The stack size is set as public const gstackSize in the alchemy generated code.  You can see this if you build with ACHACKS_TMPS set.  The default is one megabyte.
    One way to change the stack size is to use llvm-dis to disassemble avm2-libc/lib/avm2-libc.l.bc, generating avm2-libc.l.ll, modify the constant, and then use llvm-as to recompile your modified library and overwrite the old one.  These utilities should be in your path if alchemy is set up.

  • Set a language on the portal application

    Dear All, 
    How I can write code to set a language on the portal application?  
    thanks in advance,
    Marcelo Osako

    Hi Marcelo,
    I assume you mean how to change language for a single iView only. For changing overall language, the user can just go to the portal personalize page.
    For an iView, you can do a lookup of the iView and change the language, like so:
    InitialContext iCtx = null;
    String personalHello = "portal_content/DanielContent/DanRole/danWS/hello";
    try {
       iCtx = new InitialContext(env);
       IiView myIView = (IiView)iCtx.lookup(personalHello);
       myIView.putAttribute("ForcedRequestLanguage","de");
       myIView.save();
    You would have to do a personalized JNDI lookup, so the language is only changed for the user. However, this would permanently change the page for this user.
    Hope this helps.
    Daniel

  • How to set a language from LTR to RTL in illustrator cs4

    how to set a language from LTR to RTL in illustrator cs4.....plz help

    Mac or PC
    In either case the language has to be selected on the Mac go to the SystemPreference and language and text and select arabic as the language etc.
    That should do it.
    Oh, yes just in case you have to also select and arabic type face and it helps if you have a ME computer.

  • [ISA 4.0 SP5] How to set the language of an order

    Hi,
    how to set the language of an order?
    I use address.setCountry( myCountry ) and works fine, but:
    an Order in R3 has also a field "Language" under the tab "Communication", but it's not set automatically, corresponding to the country.
    How do i set this field on the Java-side in InternetSales 4.0 Sp5?

    Hi vikram!
    Sorry for the still inconvenience, but I'm getting this error:
    Error in method invocation: Static method sendNotification( com.sap.odp.usermgmt.masterdata.UserAccountBo, com.sap.odp.usermgmt.masterdata.UserAccountBo, com.sap.odp.api.comp.messaging.MailTypeEnumType, java.util.Properties, null, null ) not found in class'com.sap.odp.api.util.NotificationUtil'
    Im making the code the following way:
    Properties params = new Properties();
    params.put(new String("PHASE_NAME"), faseName);
    params.put(new String("DOCUMENT_TYPE"), docType);
    params.put(new String("DOCUMENT_NAME"), contractName);
    params.put(new String("RECIPIENT_FIRST_NAME"), nombre);
    params.put(new String("OWNER_FIRST_LAST_NAME"), owner.toString());
    params.put(new String("START_DATE"), fecha);
    params.put(new String("ORG_UNIT"), orgUnit);
    params.put(new String("INSTRUCTION"), "");
    params.put(new String("DOCUMENT_HEADER_URL"), vinculo);
    recipients = IapiAccountLocator.lookup(session, collaborator.getPrincipal()); // This Changed.
    ( I also tried like this:
    IapiAccountIfc recipients = IapiAccountLocator.lookup(session, collaborator.getPrincipal());)
    sender = session.getAccount();
    mailTypeEnum = new MailTypeEnumType(MailTypeEnumType.ODP_WORKFLOW_APPROVAL_REQUEST_MSG);
    NotificationUtil.sendNotification(recipients,sender, mailTypeEnum,params,null,null);
    Thanks again!

  • How to set selected Language from Portal dropdown in Logon to User profile

    Hi Gurus,
    I select a language in Portal Language dropdown in the Logon Page.
    After login in the content is getting displayed in the browser language.
    I want the portal content to be displayed in the selected language in the portal LogonPage.
    I checked the thread Logon page change to add a dropdown for language
    The is the requirement for me too .
    Kindly suggest me on how to set the language in the Portal user Profile so that the portal contents gets displayed in the selected languages from the dropdown .
    Thanks in Advance

    Hi Prasanna,
    The language that the portal is displayed in depends on the following
    heirarchy, with the languages at the top of the list taking precedence
    over those at the bottom:
    1. Component (iview) language (defined in the portalapp.xml)
    2. Portal Mandatory language (defined in the prtDefault.properties)
    3. User language (defined in the user#s profile).
    4. Request language (defined by the browser).
    5. Portal Default language (defined in the prtDefault.properties)
    6. System Default language (default locale defined by the OS).
    So for example, if you have your portal user language (as in point 3)
    set to Russian, but the language of the iView that is the logon page
    (as in point 1) set to English, that logon page will be displayed in
    English.
    Keeping the above in mind, please make the necessary changes to the
    configurations and check if it helps.
    Regards,
    Sowmya
    Edited by: Sowmya K on Jun 2, 2011 11:32 AM

  • How to set default language for typing english if my OS language is russian?

    Hi.  I cant figure out how to set english as default typing language. Opening Skype, new browser window, vpn client, switches my input to russian (my os language). Especially this annoys if im trying to enter login and password.

    oleg.lestat wrote:But still when i setting cursor in Google Chrome addrese bar, or my vpn client password field it switches to russian
    Changeing language (e.g. to have english menues or keybord layout) on a system, took place in applications too only if the application supports that language, or uses by default the system librarys to adopt the language settings.
    Not all applications use automatically the system librarys of your Mac for language settings or spell checking. Most will do so, some only during installation, some never.
    Applications can have own language settings others have only the installation language available.
    Have you checked this on Chrome (Wrench -> Options -> Advanced -> Change Fonts and language settings -> Language -> Google Chrome language) and your VPN Client?
    Lupunus

  • How to set the icon for the entire application with JFrame.setIconImage

    I set the icon on the main frame using JFrame.setIconImage(). The icon is shown properly in the main frame.
    If more JFrames are opened from the main frame, the newly opened JFrames also show the icon.
    However if JDialogs are opended, in some cases the icon set on the main frame is shown and in other cases the coffee cup.
    What is JFrame.setIconImage() expected to do? Setting the icon for a single JFrame or the entire application?
    How can I set the icon for the entire application?
    How can I set the icon for JDialogs?
    Thank you

    In order for your dialogs to use the same icon as the frame, you must parent the dialogs to the frame which has the custom icon.
    See the following thread for more information: http://forum.java.sun.com/thread.jsp?forum=57&thread=362542
    cheers,
    Greg

  • How to set a new DocumentBuilderFactory in my application?

    Hello Suners,
    I really need some help to set a new DocumentBuilderFactory in my application.
    I have a new instance of DocumentBuilderFactory with my settings and i need to set it in the application so that it use it to show some special DOM elements.
    DocumentBuilderFactory.newInstance("com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl", null) ;now i just need a clue how to make it recognizable to my application i mean how to make my application obtain a reference to the new DocumentBuilderFactory so it can use the factory to configure and obtain parser instances?.
    Edited by: abulseed on Aug 29, 2010 6:59 AM

    abulseed wrote:
    now i just need a clue how to make it recognizable to my application i mean how to make my application obtain a reference to the new DocumentBuilderFactory so it can use the factory to configure and obtain parser instances?.That code already produces a reference to the new DocumentBuilderFactory (assuming it's correct code). The normal thing to do with the reference would be to assign it to a variable. Then your application could use the variable, which refers to the factory, to do those things which it is supposed to do.

  • How to set portal authorization in ABAP Webdynpro application

    Hi All,
    Do you have an idea how to set the visibility for Group UI element based on the Portal user authorization in ABAP Webdynpro , for example if the portal user A(or group A), logins into the portal on click of the ABAP Webdynpro IView then we need to set  invisible (hide) the Group UI element  in webdynpro ABAP Application.
    Do you have any sample code on the same to handle the portal authorization in Webdynpro ABAP?? , please let me know if couldnu2019t understand this requirement or my explanation
    Thanks,
    PortalUser100

    Hi Kris,
    Thanks for your reply.
    Like however we passed the UserID, can we pass Group ID also to the ABAP Webdynpro application??
    Can u get me other things, how to copy of the existing component and i want to give the new name for the component and there i need to modify, i dont want to disturb original component  before copy...let me know the procedure for the same??
    Regards,
    PortalUser100

  • How to set screen size of Labview toplevel application

    HI,
    I developed an application considering my monitors screen size. When my application was run on another machine whose monitor was set to a different resolution, parts of the application when off the screen. How can I make sure that when my application runs on any machine it will fit onto that screen.
    Thanks
    --A

    Hi,
    select File/VI Properties. In VI properties window select Category->Window Size. Select 3-rd option "Scale All Objects on panel as the Window Resizes".

  • How to set the language of a mail template from NotificationUtil?

    Hi experts!
    I've been having some issues with the Message Template Language when using the NotificationUtil to send an Email.
    How do I set the language of the template?
    Do i set this by the sender? Or do I need to reference the recipient?
    If so, how could I get the Account Object Interface from the user given that I got him as a collaborator?
    I wish you could help me out whit this language problem.
    Here's an example of the code I'm using:
    Properties params = new Properties();
    params.put(new String("PHASE_NAME"), faseName);
    params.put(new String("DOCUMENT_TYPE"), docType);
    params.put(new String("DOCUMENT_NAME"), contractName);
    params.put(new String("OWNER_FIRST_LAST_NAME"), owner.toString());
    params.put(new String("START_DATE"), fecha);
    params.put(new String("INSTRUCTION"), "");
    params.put(new String("DOCUMENT_HEADER_URL"), vinculo);
    String[] recipients = {mail};
    sender = session.getAccount();
    mailTypeEnum = new MailTypeEnumType(MailTypeEnumType.ODP_WORKFLOW_APPROVAL_REQUEST_MSG);
    NotificationUtil.sendNotification(recipients,sender, mailTypeEnum,params,null,null);
    Thanks in Advance!

    Hi vikram!
    Sorry for the still inconvenience, but I'm getting this error:
    Error in method invocation: Static method sendNotification( com.sap.odp.usermgmt.masterdata.UserAccountBo, com.sap.odp.usermgmt.masterdata.UserAccountBo, com.sap.odp.api.comp.messaging.MailTypeEnumType, java.util.Properties, null, null ) not found in class'com.sap.odp.api.util.NotificationUtil'
    Im making the code the following way:
    Properties params = new Properties();
    params.put(new String("PHASE_NAME"), faseName);
    params.put(new String("DOCUMENT_TYPE"), docType);
    params.put(new String("DOCUMENT_NAME"), contractName);
    params.put(new String("RECIPIENT_FIRST_NAME"), nombre);
    params.put(new String("OWNER_FIRST_LAST_NAME"), owner.toString());
    params.put(new String("START_DATE"), fecha);
    params.put(new String("ORG_UNIT"), orgUnit);
    params.put(new String("INSTRUCTION"), "");
    params.put(new String("DOCUMENT_HEADER_URL"), vinculo);
    recipients = IapiAccountLocator.lookup(session, collaborator.getPrincipal()); // This Changed.
    ( I also tried like this:
    IapiAccountIfc recipients = IapiAccountLocator.lookup(session, collaborator.getPrincipal());)
    sender = session.getAccount();
    mailTypeEnum = new MailTypeEnumType(MailTypeEnumType.ODP_WORKFLOW_APPROVAL_REQUEST_MSG);
    NotificationUtil.sendNotification(recipients,sender, mailTypeEnum,params,null,null);
    Thanks again!

  • How to set AppStore language to English If my Billing in another country?

    I'm really upset cuoldn't find answer still, and only found that it's impossible to set language to English, if, let's say,my billing address is in Russia.
    What if I'm traveling or can only have access to card in different country?
    I agree to see some Russian apps in AppStore, but some Applications switch to Russian as well as soon as I pick it as my country. (e.g. Reminders, the whole app is in Russian though I have English set in Settings).

    oleg.lestat wrote:But still when i setting cursor in Google Chrome addrese bar, or my vpn client password field it switches to russian
    Changeing language (e.g. to have english menues or keybord layout) on a system, took place in applications too only if the application supports that language, or uses by default the system librarys to adopt the language settings.
    Not all applications use automatically the system librarys of your Mac for language settings or spell checking. Most will do so, some only during installation, some never.
    Applications can have own language settings others have only the installation language available.
    Have you checked this on Chrome (Wrench -> Options -> Advanced -> Change Fonts and language settings -> Language -> Google Chrome language) and your VPN Client?
    Lupunus

  • How to set default language for Portal?

    Hi All,
    We use EP6.
    Default language is not defined and therefore is being set by the browser's language.
    Where do I set default language for all users?
    (I don't want that the users will be able to change it by themselves by browser/EU role).
    I tried to set the "request.mandatorylanguage" and
    "request.mandatorycountry" in prtDefault.properties but it didn't help.
    Thanks,
    Omri

    Hi Omri,
    are those to parameters
    request.defaultlanguage=...
    request.defaultcountry=...
    set in the prtDefault.properties, and the J2EE Server restarted after the change?
    Check out this thread and the link given there for more info: HOW to define the default language in the portal
    Hope this helps,
    Robert

  • How to set the language of oracle universal installer

    Hi all,
    I have downloaded oracle9i database release 2 Enterprise/standard/personal edition for windows. so I got the them into 3 different folders as said in the oracle site. I have few questions.
    1.i have installed oracle using the universal installer, but my operating system is winxp german version.I want the installer to be in english so that i can easily navigate, how can i set the language. Does the installer automatically detects the OS and chosses the language.
    2. I have 2 sql scripts. One with Schema(tables for database with create statements) and other file with data(insert statements).That is Schema.sql, data.sql. How can i use these scripts for querying using the installed database.
    3. I am totally confused with SID, how to set it and what does it indicate(functionality).
    4. The login for SQL PlUS, i used scott and tiger. Because i think the installer did not installled completely, i could not create my own username/password. What will be the host-string while logging to sqlplus.
    Thanks and Regards
    Babu.

    1.i have installed oracle using the universal installer, but my operating system is winxp german version.I want the installer to be in english so that i can easily navigate, how can i set the language. Does the installer automatically detects the OS and chosses the language.From the control panel, regional setting, make default for English (United States) and English as default language. While installing oracle from OU, choose only english langauge.
    2. I have 2 sql scripts. One with Schema(tables for database with create statements) and other file with data(insert statements).That is Schema.sql, data.sql. How can i use these scripts for querying using the installed database.Once you have installed oracle and create database, make sure the following and then run your scripts.
    1. Check oracle services are started or not from the windows services. If yes, then do step 2, else, start services first and then do step 2.
    2. set oracle_sid=your_database_name
    3. sqlplus /nolog -- when you give this command, if you get reply that connected to idel instance, then, your database is not up, in this case, startup your database after step 4. (startup)
    4. connect / as sysdba
    5. run your script to create schema.
    --once schem created. connec to your newly created schema.
    6. connect username/password --
    7. run the script (insert records)
    3. I am totally confused with SID, how to set it and what does it indicate(functionality).ORACLE_SID is nothing bur your oracle database name. You will be asked to provide the database name while installing and creating oracle database.
    4. The login for SQL PlUS, i used scott and tiger. Because i think the installer did not installled completely, i could not create my own username/password. What will be the host-string while logging to sqlplus.As long as you want to do it on the database server, then, you dont need tnsname. If you want to access database from other machines, then, you need to create a tnsname to connect.
    Jaffar
    OCP DBA

Maybe you are looking for

  • Programmatically creating a Rendezvous : missing variable in Result container

    Hi everybody, For my tests purpose, I need to programmatically create a sequence. In this sequence, I need to insert Rendezvous steps. Everything works fine when creating them, but when I execute the sequence / steps created this error always show up

  • How to define a cell name in numbers?

    How do I define a cell name to use in a formula. I want to calculates costs for a dinner function where the number of guests, costs etc are variable. I want to use the number of guests in different formulas in the spreadsheet. So I need to have a cel

  • Eliminatio​n of motion artifacts in the pulse

    Hi all! I have the task of implementing the algorithm eliminate motion artifacts when registering pulse. The task is to turn the forecast of the next pulse values on the basis of previous values. Curve pulse was formed window is the upper limit and l

  • Language specific urls in EP6

    Hi all, i was trying to implement language specific URL iview using the following link: http://help.sap.com/saphelp_nw70/helpdata/en/44/aabd5c7e8e0a47e10000000a1553f7/frameset.htm however this link is for EP7. Can anybody tell how can I implement the

  • Iphone 5 Power button not working once in a while?

    About 5 times a week, the power button doesn't work. Sometimes I have to press it like 10 times for it to turn on. I brought it to the apple store and they said to bring the phone back to them when it happens again. So today it happend again so I jus