• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get default language?

 
arun mahajan
Ranch Hand
Posts: 305
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I was trying tofind the default language in the handset set. Though there is a method getProperty(String key). What would be the argument "Key" here? Though I tried "user.langauage" what is used in java. but it fails. Could you please help me to detect same.

regards,
Arun
 
Eric Giguere
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
MIDP defines a system property called "microedition.locale" that defines the device's locale.
 
arun mahajan
Ranch Hand
Posts: 305
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Eric. It worked very well.
But I was wondering where in the world I can get all these information? As I failed to search same in the API. Can you give me some reference for this so that I can try to find other Property key name for trial purposes.
regards,
Arun
 
Liam Quinn
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The locale property is defined in the MIDP 1.0 specification, which you can find at
http://java.sun.com/j2me/docs/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic