Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User yanivalmog's Avatar
    Join Date
    Jun 2004
    Posts
    8
    Hi,

    I am developing an application for Nokia E71.

    Is there any way (Nokia API or anything else) that can get the input language at runtime?

    Thanks in advanced,

    Yaniv

  2. #2
    Super Contributor grahamhughes's Avatar
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,394
    This:

    Code:
    String locale = System.getProperty("microedition.locale");
    Will (on all Nokias, and most other devices) return current locale, either as "xx" (where xx is the two-letter, ISO-639 language code, always lower-case) or "xx-YY" (where YY is the two-letter, ISO-3166 country code, always upper-case). This is part of the MIDP specification, not Nokia specific, but note that null is a valid return value.

    For example, values for English include "en", "en-GB", "en-US", "en-CA", etc.

    The current UI locale probably reflects the input language.

    Hope this helps.

    Graham.

  3. #3
    Registered User yanivalmog's Avatar
    Join Date
    Jun 2004
    Posts
    8
    Hi Graham,

    Thanks for your reply.

    However, the System.getProperty("microedition.locale") returns the OS language, not the input language.

    In other words, the OS UI can appear in english, but when writing text, the input language can be changed by the user.
    What i'm looking for is the current input language that the user has set.
    In this case, System.getProperty("microedition.locale") will return "en-US" regardless of the input language.

    My question is whether or not there is a way of getting this input language?

    Thanks in advance,

    Yaniv.

  4. #4
    Super Contributor grahamhughes's Avatar
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,394
    Yes, you are correct, and no, there is no way specifically to get the input language.

    Graham.

  5. #5
    Nokia Developer Champion im2amit's Avatar
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    2,903
    Yanivalmog,

    You may need to accept the user's input and then try to identify the device language from user's Input content itself (may be unicode or ASCII vaules of the entered text or using some lauage identification algo;s or webservices).

    thanks,
    ~Amitabh

  6. #6
    Regular Contributor mattbrenner's Avatar
    Join Date
    Nov 2008
    Posts
    75
    Hi,

    Can you provide more context? Why do you care about the input language? I'm not saying you shouldn't care, I'm just trying to understand what you will do with this information. For example, are you interested so that you can present messages in the appropriate language? I have a few ideas that may be helpful, but knowing your purpose will be helpful in providing suggestions.
    Last edited by mattbrenner; 2009-12-19 at 20:22. Reason: type
    Cheers,

    Matt Brenner
    UnME2, Inc.

Similar Threads

  1. Nokia PC Connectivity能否链接到cdma手机上发送短信和其他操作?
    By bborn in forum Web Technologies and Multimedia Content- Web 技术和多媒体内容
    Replies: 2
    Last Post: 2004-05-04, 11:06
  2. Nokia 7650 support Bluetooth audo?
    By ovjo12 in forum Bluetooth Technology
    Replies: 5
    Last Post: 2003-07-17, 18:50
  3. Series 60 Concept Emulator (SDK Beta 0.2 Linux) not working
    By mattbee in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2003-06-10, 11:43

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved