×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Jun 2004
    Posts
    8

    Nokia E71 - input language

    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
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Nokia E71 - input language

    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
    Join Date
    Jun 2004
    Posts
    8

    Re: Nokia E71 - input language

    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
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Nokia E71 - input language

    Yes, you are correct, and no, there is no way specifically to get the input language.

    Graham.

  5. #5
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,087

    Re: Nokia E71 - input language

    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
    Join Date
    Nov 2008
    Posts
    75

    Re: Nokia E71 - input language

    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 7650 support Bluetooth audo?
    By ovjo12 in forum Bluetooth Technology
    Replies: 5
    Last Post: 2003-07-17, 18:50
  2. 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
  •  
×