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. Advertising

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. Maurice Hulsman
    Replies:
    1
    Views:
    1,920
    Guus Bosman
    Jul 25, 2004
  2. Replies:
    4
    Views:
    1,054
  3. Gabriel Genellina
    Replies:
    0
    Views:
    742
    Gabriel Genellina
    Feb 18, 2009
  4. donet programmer
    Replies:
    3
    Views:
    1,651
    Gregory A. Beamer
    Nov 20, 2009
  5. zade
    Replies:
    1
    Views:
    647
    James Kanze
    Mar 5, 2010
Loading...

Share This Page