×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    8

    Question Right-to Left languages in Series 60

    I'm writing a j2me application that supports arabic.

    When I tested on a series 40 phone (Nokia 6230i), all the text (StringItems, TextItems etc) in forms were automatically right-aligned by the phone when I changed the phone language to Arabic. Now this is good, and what I expected.

    But in the series 60 (Noka 3230) phone, this does not happen. The text remains left aligned. I tried explicitly specifying the layout (SetLayout(Item.LAYOUT_RIGHT), but even then the text remains left aligned.

    Can anyone help me with this? Is this a known issue in series 60 phones?

    Thanks,
    Ruchira

  2. #2
    Super Contributor
    Join Date
    Dec 2005
    Location
    Europe/Poland/Warsaw
    Posts
    1,697

    Re: Right-to Left languages in Series 60

    hi,

    it could be implementation issue, does your device support your launguge natively?
    I found that Motorola has dedicated JAD optional property for enforcing RTL (Language-Type optional param which could be RTL/LTR) but that could be not case with Nokia devices,

    regards,
    Peter

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    8

    Re: Right-to Left languages in Series 60

    Yes, the device supports arabic natively. I can't figure out what's wrong.
    Thanks for your interest.
    Regards,
    Ruchira

  4. #4
    Super Contributor
    Join Date
    Dec 2005
    Location
    Europe/Poland/Warsaw
    Posts
    1,697

    Re: Right-to Left languages in Series 60

    Hello Ruchira,

    have you tried at least for TextFields, TextBoxes to hint implementation a mode to be used?
    Code:
    textfield.setInitialInputMode("UCB_ARABIC");
    iv'e just read about that in MIPD specification,

    edit: just by the way (because you have such device): can you check and post what midlet property
    Code:
    System.getProperty("microedition.locale");
    returns on your phone when Arabic language UI mode is enabled?


    regards,
    peter
    Last edited by peterblazejewicz; 2006-07-28 at 22:57.

  5. #5
    Registered User
    Join Date
    Mar 2003
    Posts
    8

    Re: Right-to Left languages in Series 60

    Hi Peter,

    I tried setting textField.setInitialInputMode as you suggested. But it doesn't help and there is no difference.

    System.getProperty("microedition.locale"); returns "ar"

    I don't have this phone with me, but I do the changes and send to a friend who has an Arabic phone to test it out.

    Thanks for your help.
    Ruchira
    Last edited by ruchira; 2006-07-29 at 16:33.

  6. #6
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280

    Re: Right-to Left languages in Series 60

    In my experience, many phones (including Series 60 phones, or at least the earlier models) don't handle right to left text correctly. With some it only happens with drawString(), with some it happens only on high level UI items (like StringItems) and with some it happens with both high level and low level text.

    It's necessary to make a method to reverse any strings on these phones as necessary. You'll have to test any models you want to support to decide which ones need to have the text reversed, and provide different builds for these devices.

    shmoove

  7. #7
    Registered User
    Join Date
    Apr 2007
    Posts
    1

    Re: Right-to Left languages in Series 60

    Hey ruchira,
    Did u solve the right-align arabic issue?

    subject:
    "Right-to Left languages in Series 60"

    Best Regards,

    Mario

Similar Threads

  1. createImage on Nokia Series 40 MIDP Concept SDK Beta 0.3
    By GerardMason in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2003-09-30, 10:00
  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
  3. Series 60Series 60 MIDP Concept SDK Beta 0.2 Linux bug?
    By kauppi in forum Mobile Java Tools & SDKs
    Replies: 3
    Last Post: 2003-04-07, 09:05
  4. Series 60 Concept SDK throws an unknown exception
    By sagee in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2003-02-27, 12:10

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×