Regional Language Settings

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sirajuddin84
    New Member
    • Nov 2007
    • 1

    #1

    Regional Language Settings

    I want to change my Regional Language Settings by java programming..
    I want to Change my Language to Arabic while running the program and Change back to English(default ) while exit the program.
    I tried out wth below code.. but couldnt make it.

    Locale.setDefau lt(new Locale("ar", "SA"));



    this code is not working. I hope that someone can help me..

    thanx in advance.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by sirajuddin84
    I want to change my Regional Language Settings by java programming..
    I want to Change my Language to Arabic while running the program and Change back to English(default ) while exit the program.
    I tried out wth below code.. but couldnt make it.

    Locale.setDefau lt(new Locale("ar", "SA"));



    this code is not working. I hope that someone can help me..

    thanx in advance.
    I hope you read the part of the specs which says
    Originally posted by specs
    Sets the default locale for this instance of the Java Virtual Machine. This does not affect the host locale.

    Comment

    • JosAH
      Recognized Expert MVP
      • Mar 2007
      • 11453

      #3
      Also have a look at the Locale.getAvail ableLocales() method.

      kind regards,

      Jos

      Comment

      Working...