A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide 1Z0-808
this week in the
How to get user locale
Joined: Feb 24, 2005
Feb 01, 2006 19:33:00
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!
Joined: Nov 24, 2005
Feb 01, 2006 19:39:00
By reading variables like user.language, user.country and user.variant ?
All roads lead to JavaRanch
Joined: Oct 14, 2005
Feb 02, 2006 09:38:00
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?
I agree. Here's the link:
subject: How to get user locale
Getting locale/language in struts beans
need help on Locale specifice Date format
Deprecated method : getCurrentLocale()
Customized date separator
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015