This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes How to get user locale Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to get user locale" Watch "How to get user locale" New topic

How to get user locale

Mullin Yu

Joined: Feb 24, 2005
Posts: 14
Is there any method to get the user locale?

I found that there's a method getDefault(), but it seems get the system locale, but not the user locale.

Any ideas? Thanks!
Christophe Verré

Joined: Nov 24, 2005
Posts: 14687

By reading variables like user.language, and user.variant ?

[My Blog]
All roads lead to JavaRanch
Paul Clapham

Joined: Oct 14, 2005
Posts: 18541

So for example you have a Japanese person sitting at a computer in the United States, and you want to find out that the person is Japanese? No? Then what is the difference in your mind between the "user" locale and the "system" locale?
wood burning stoves
subject: How to get user locale
Similar Threads
Getting locale/language in struts beans
Customized date separator
Locale Class
need help on Locale specifice Date format
Deprecated method : getCurrentLocale()