Getting user Locale settings?

Discussion in 'Java' started by andrejohn.mas@gmail.com, Oct 15, 2006.

  1. Guest

    On MacOS X, Windows XP and other modern operating system the user can
    specify the regional settings ( in International System Preferences on
    MacOS X and Regional Control Panel on Windows XP). While in many cases
    users will choose the region and stick with that, others will takeit
    and then customise things like date format, time format, etc. For
    example I choose Canada (en_CA), but would rather have my date format
    be yyyy-MM-dd and my time format be HH:mm:ss.

    What I am wanting to do from Java is get the settings the users
    specified for their environment. I don't believe that the application
    should need to ask the user respecify these settings. The closed I
    found was Locale.getDefault(), but it doesn't recognise customisations
    the user might have done for the environment. Since that doesn't seem
    to do the job I would be curious to know if there is an alternative
    solution, without having to revert to specifics.
     
    , Oct 15, 2006
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Carl Howarth

    Locale Settings

    Carl Howarth, Aug 11, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    488
    Jerry III
    Aug 11, 2003
  2. Maurice Hulsman
    Replies:
    1
    Views:
    2,211
    Guus Bosman
    Jul 25, 2004
  3. Replies:
    4
    Views:
    1,304
  4. Rakesh
    Replies:
    2
    Views:
    2,164
    Roedy Green
    Apr 3, 2009
  5. donet programmer
    Replies:
    3
    Views:
    2,029
    Gregory A. Beamer
    Nov 20, 2009
  6. zade
    Replies:
    1
    Views:
    918
    James Kanze
    Mar 5, 2010
  7. Sibylle Koczian
    Replies:
    2
    Views:
    1,364
    Sibylle Koczian
    Nov 20, 2010
  8. Masao Mutoh
    Replies:
    0
    Views:
    207
    Masao Mutoh
    Dec 4, 2008
Loading...