How to get browser language

Depending on the language of the browser, (firefox/ie) I want
to localize the flex app. How can I look up the locale setting of
the browser? thanks

Yes it can be used but it will give locale, in case I change the browser lang I am not sure if the locale also gets changed. If not then I guess we can not use this method.

Similar Messages

  • How to avoid browser language effect on portal

    Hi All,
    I am working on portal default language. My requirement is 'i want avoid the users local browser language'.
    I want to see always portal language is 'English' even if user selects 'chinees'. How to reach this target ?
    Let us take an example suppose user selected 'Chinees' in his IE but still he needs to get english.
    I have tried all solutions from SDN, but none of them worked.
    What is the solution for this?
    Kind Regards,
    Phanikumar.

    Hi
    Note 1013521 - Configuration of supported languages within the portal
    1. Navigate to system administration > System configuration >Service configuration > Applications com.sap.portal.admin.wizardframework, and right click for configuration.
    2. Add/Remove locales to source/target locales lists separated by a comma, a semicolon or a space.
    3. Save the changes and restart the service
    Regards
    Shridhar Gowda

  • How to determine browser language settings?

    Hi,
    i want to create a flash chart diagram in APEX 4.0 with dynamic column names (series name={here the dynamic column header}) depending from the browser language setting. How can i determine the browser language setting in the flash charts sql?
    Or is there any other way how i can create dynamic column header for this purpose?
    Regards
    Stephan
    Edited by: Stephan Diedershagen on 03.11.2010 14:35

    Hello,
    Just wanted to remind you that APEX has a substitution string called BROWSER_LANGUAGE that holds the current browser language. No need to define extra application item and computation.
    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/concept.htm#sthref218
    Also, if working with multi-lingual is a major motive in your application, you should learn how to use the APEX translation mechanism. It will save you the need to define your own language mapping tables and a lot of ‘CASE’ statements. It can be a real time saver. You can start here:
    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/global.htm#sthref2278
    Regards,
    Arie.
    ♦ Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    ♦ Author of Oracle Application Express 3.2 – The Essentials and More

  • How to get user language in property renderer without web dynpro (java)

    Hi all,
    how can I get the language of the current user?
    Normally I got it with:
    IWDClientUser wdClientUser = WDClientUser.getCurrentUser();
    com.sap.security.api.IUser sapUser = wdClientUser.getSAPUser();
    IUser ep5User = WPUMFactory.getUserFactory().getEP5User(sapUser);
    IResourceContext resourceContext = new ResourceContext(ep5User);
    String strUserLanguage = resourceContext.getLocale().getLanguage();
    But this only works in web dynpro applications. Now I need to get the language in my own property renderer. The code throws:
    com.sap.tc.webdynpro.services.sal.um.api.WDUMException: No client user defined for the current request (no regular Web Dynpro request as ITask is null.
    Thanks a lot
    Steffi

    Hi,
    If you are in a property renderer you always have a IResource which inturn has a ResourceContext and ResourceContext has the Users object.
    So the code should be:
    IResourceContext resourceContext = IResource.getContext();
    IUser user = resourceContext.getUser();
    user.getLocale().getLanguage();
    Regards,
    Praveen Gudapati
    Edited by: Praveen Gudapati on May 16, 2008 2:54 PM

  • How to get Different language in ALV header

    Hi Experts,
    Please help to get the Header text in other language other than English.
    I want to get Combodian language to be in the header so that the user can understand by looking at the header.Its is also required for the top of page event.
    If any translations required in future is there any option to change that header
    Pleas help me,
    Thanks in advance.
    Regards,
    Shalem.

    I think whatever header you want to mention that should be specified in fieldcatalogue. So in whichever format/language you are specifying in fieldcatalgue in that format/language only it will be displayed in alv.
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • How to get browser to highlight viewed sites

    After I have done a google search when I visit one of the the sites that the search found and then go to another it does not highlight the previously viewed site so that I know which ones I have visited. Any suggestions on how to get the system to do this? Thanks.

    I am running Tiger
    IMAC Mac OS X (10.5.4)
    Okay, but you might want to change the computer information in your setup.
    Which version of Safari? What exactly are you doing?
    I have Safari 3.0.2 (I never use Safari so I don't bother updating). I open a Window, do a Google search, click on a blue link, takes me to the new page. I click the back arrow which takes me back to my Google results where I now see the link is a purple color. Not the best of contrast colors I have to admit. This isn't happening for you?

  • How to get browser URL

    Dears
    We are working with system with 2 application server IPs and one Real IP (which is able to be accessed through internet)
    I would like to know the URL is the user using in order to use his IP to open something else from the system.
    Chcking the host name not usesful because if user connect from home using Real IP it return the AS host name which real IP redirct to it.
    I need to know how to get the URL of the session from the form or to know whether the user connected using the Real IP or not.
    (Oracle forms 10gR2)

    I think you can get a URL from/with a PJC (java pluggable component) from/with IHandler interface..
    Try this bean.. You have a property with name HOST_URL.. (with some modification you can also read applet parameters).. (I have done this now but I have not jet tested it)....but I thik this should work...
    You have also other parameters to get client IP addres and hostname...
    package in2.client;
    import java.io.PrintStream;
    import java.net.InetAddress;
    import oracle.forms.handler.IHandler;
    import oracle.forms.properties.ID;
    import oracle.forms.ui.VBean;
    public class ClientInfo extends VBean
      private static final ID CLIENT_IP = ID.registerProperty("CLIENT_IP");
      private static final ID CLIENT_NAME = ID.registerProperty("CLIENT_NAME");
      private static final ID CLIENT_OS = ID.registerProperty("CLIENT_OS");
      private static final ID CLIENT_USER = ID.registerProperty("CLIENT_USER");
      private static final ID HOST_URL = ID.registerProperty("HOST_URL");
      private IHandler mHandler;
      private String hostAddress = "";
      private String hostName = "";
      private String hostOs = "";
      private String hostUser = "";
      private String hostURL = "";
      public ClientInfo()
        try
          System.out.println("+----------------------+");
          System.out.println("+  ClientInfro PJC     +");
          System.out.println("+  Peter Valencic      +");
          System.out.println("+----------------------+");
          System.out.println("+Dat spr: 10.09.2007   +");
          System.out.println("+Dat spr: 04.07.2008   +");
          System.out.println("+Dat spr: 10.07.2008   +");
          System.out.println("+Dat spr: 15.11.2010   +");
          System.out.println("+----------------------+\n");
          this.hostAddress = InetAddress.getLocalHost().getHostAddress();
          this.hostName = InetAddress.getLocalHost().getHostName();
          this.hostOs = System.getProperty("os.name");
          this.hostUser = System.getProperty("user.name");
          System.out.println("Host   adress: " + this.hostAddress);
          System.out.println("Host     name: " + this.hostAddress);
          System.out.println("Host op. syst: " + this.hostOs);
          System.out.println("Host username: " + this.hostUser);
          System.out.println("+----------------------+\n");
        catch (Exception e)
          System.out.println("Napaka pri inicializaciji beana: " + e.toString());
      public void init(IHandler handler)
        super.init(handler);
        this.mHandler = handler;
      public Object getProperty(ID pid)
        if (pid == CLIENT_IP) {
          System.out.println("Client IP: " + this.hostAddress);
          return "" + this.hostAddress;
        if (pid == CLIENT_NAME) {
          System.out.println("Client Name: " + this.hostName);
          return "" + this.hostName;
        if (pid == CLIENT_OS) {
          System.out.println("Client os: " + this.hostOs);
          return "" + this.hostOs;
        if (pid == CLIENT_USER) {
          System.out.println("Clientuser: " + this.hostUser);
          return "" + this.hostUser;
        if (pid == HOST_URL) {
          hostURL = this.mHandler.getApplet().getDocumentBase();
          System.out.println("Host Url: " + this.hostURL);
          return "" + this.hostURL;
        return super.getProperty(pid);
    }

  • How to get browser cookies in a servlet

    Hi,
    I need to use the browser cookie in my servlet, how can i get the browser cookies in a servlet
    Thanks in advance

    Thank you for ur reply, now i can create the cookies from the servlet,
    and now i need to create the cookies from the javascript, i have the code, and it can also create the cookies, but they can be accessible for Encrypted connections only, but the cookies which will be created from java servlets can be accessible for any type of connections,
    so please help me how to create cookies from the javascript and that should be accessible for any type of connections

  • MAC Users: how to get Chinese language input for my Bold 9700

    Hey everyone, I have a Bold 9700 from AT&T and I need to get Chinese input to work.  But all of your solutions are for PC users, and I have a Mac.  I am using the latest desk top manager.  I can get read Chinese but can't input.  there is no option for Chinese input in the application loader.  HELP!  Thanks

    Same here,
    I have a bold 9700 with t mobile USA and a macbook pro
    how can i install chinese language input? HELP !!!
    (apparently it has to do with the desktop manager, no? but the mac version is very basic)
    thanks for the help !

  • How to get greek language on blackberry?

    I get a lot of emails that use Greek Letters in them, and they come up as regular english.  How can I download the greek language onto my blackberry?  I still want my primary language to be English, but for the blackberry to understand and show the Greek Letters when I get them.  Is this possible?

    Check this link, the user solve the problem in a blackberry Bold, but the procedure is the same
    http://supportforums.blackberry.com/rim/board/message?board.id=Bold&message.id=2252&query.id=287476#...
    If I help you with any inquire, thank you for click kudos in my post.
    If your issue has been solved, please mark the post was solved.

  • How to get the language of the running InDesign?

    Hi,
    in my CS3 VB Script there is a a statement:
    myParaStyle.KerningMethod = "Optical"
    this code runs unter CS3 with English and German version of InDesign unchanged.
    Now, with CS4, InDesign wants as parameter the strings "Optical" for Englissh, and "Optisch" for the German version.
    How do I find out the language, InDesign is runnung?
    P.S. Why is the parameter implementet as string and not as Identifier?
    Thanks
    Erwin

    In JS you can use a locale-independent string:
    myParaStyle.kerningMethod = "$ID/Optical"
    Maybe it will work in VB...
    @+
    Marc
    http://www.indiscripts.com

  • How to get "Browse" list of any DAQmx control in array form

    When any DAQmx control is pulled down, it gives Browse option in the list as well along with a list. On clicking the Browse button same list is displayed in another dialog box. Is there any way to get this list in the form of an array or in any other form for further usage.

    I actually want to get an array containing list of all physical Channels of all devices installed on a system. Just to choose one Physical channel one can use DAQmx Physical channel control. And when this control is pulled down it gives complete list of all physical channels of all devices intalled on that system but this control selects only one channel. One way to get that array or list is to put a propery node of this control in a loop which points to one element of that list and keeps shifiting to next element on every iteration but unfortunately there is no such property node.
    The example which u have attached with ur message actually uses DAQmx System property node which gives an array of all devices installed on that system, similary this propery node also gives certain other lists like all Tasks, global channels etc but no physical channels and neither I could find any such property.
    I hope u've understood my problem so if u could help me out I'll be thankful to u.

  • How to get current language bar setting for input language

    I am using Flex Builder 3, IE 7 and windows OS. Is there a
    way to determine the current input language as set in the "language
    bar"? The Capabilities class always returns "en" even after I set
    Chinese ("ch") as my input language.

    Hi Dragon Cao,
    No need to create any customer exit variable for this ..
    You have standard variable CMONTH this displays current month summation. Just restrict your Key figure with this variable.
    And in properities of Key figure goto Calculations> Local Calculations> select Summation.
    If you want to assign some calday at run time sure you need to create customer exit variable using Step_2 value in enhancements(CMOD).
    Regards,
    Rajeswari.
    Edited by: mrajeswari on Aug 24, 2011 12:35 PM

  • Nokia E51 ,How to get Dutch language back???

    After installing update 200.34.36 i think i overlooked the language item and now i am stuck with an English operating system. I tried to re/install the Dutch version but whatever
    i do, the system stays English. Do anybody know the trick to tackle this problem
    Greetings

    "quoting Psychomania"
    You should contact the retailer as you have most likely been sold an imported model that was not designed for sale in your country.
    Nokia phones that are designed to be sold in Dutch speaking countries always include the Dutch language.
    Nokia care points can add languages for you, give your nearest one a call if the retailer cannot or will not help you.
    Fear not those who argue but those who dodge

  • Sorry, your browser/program is not supported by Web Dynpro! Any suggestions on how to get browser to support?

    Getting this message when visiting an ATT extranet portal where employees can view their paystubs.

    According to the [https://en.wikipedia.org/wiki/Web_Dynpro wikipedia article], this software only works in older versions of internet explorer, and nothing else. You can try using [https://addons.mozilla.org/en-US/firefox/addon/user-agent-switcher/?src=ss this addon] to make the software think you are using a compatible version of internet explorer and allow you to access it, but the website may not work correctly.

Maybe you are looking for

  • MSI 6667BB-003US Sees 16GB Compact Flash Card as 34MB

    I just got a MSI 6667BB-003US nettop from Newegg and am trying to use the onboard compact flash slot. I got a 16GB Kingston compact flash card to use with this computer but the computer only sees it as 34MB. The BIOS doesn't give me any options to ch

  • How do you watch videos on safari?

    I have been trying to watch episodes of my favorite shows on the CW and unfortunatley I can't. It says that I need to download the newest version of Adobe player and I don't know if there is already an app that does this for me. All help is greatly a

  • Rule button in Mail

    In installing SpamSieve I am asked to click the Rules button in Preferences in Mail. I cannot see a rules button. Using Mail 3.6 in Mac OS 5.8 Thanks, HJZ

  • Problems with OS X Mountain Lion installation

    What to do? This message keeps on prompting on each attempt to install os x mountain lion. "This copy of the Install OS X Mountain Lion application can't be verified. It may have been corrupted or tampered with during downloading." Even after deletio

  • LR CC 6 downloaded, installed, does not run.  Have clicked on the .exe file, nothting happens.

    I already have subscription, from CC app downloaded LR 6 2015 CC and installed.  However, I cannot get it to run.  The files Lightroom.exe size 16,167 kb date 4/15/2015 7:1pm is in the Program Files/Adobe/Lightroom folder, but nothing happens when I