how to detect operating system language (locale) from java code

Posted by Sudhir on Stack Overflow See other posts from Stack Overflow or by Sudhir
Published on 2010-03-18T11:34:05Z Indexed on 2010/03/18 12:11 UTC
Read the original article Hit count: 201

Filed under:
|
|
|
|

What is the correct way of knowing operating system language (locale) from java code?

I have tried

Locale.getDefault()
System.getProperties("user.language")

etc.

but they are not correct nothing actually displays the "System Locale" which is available by the command "systeminfo" in windows.

Please help.

© Stack Overflow or respective owner

Related posts about java

Related posts about locale