File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes How to get user locale Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "How to get user locale" Watch "How to get user locale" New topic
Author

How to get user locale

Mullin Yu
Greenhorn

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é
Sheriff

Joined: Nov 24, 2005
Posts: 14685
    
  16

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


[My Blog]
All roads lead to JavaRanch
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 16487
    
    2

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: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to get user locale
 
Similar Threads
Customized date separator
Deprecated method : getCurrentLocale()
Locale Class
Getting locale/language in struts beans
need help on Locale specifice Date format