Reputation: 6188
I'm developing an app for the nokia e75 using j2me. What is a good way of showing content in the right lang? I don't think that java beans are an option.
Just to be clear; the problem isn't to know what the lang is of the device, but how to generate the right content knowing the lang the user uses.
thx
Upvotes: 2
Views: 188
Reputation: 16363
I'm using following strategy:
Detect language using
System.getProperty("microedition.locale");
After locale detection load appropriate language resource
Upvotes: 1
Reputation: 240900
The standard way of detecting the user's language is to read the language set for the phone.
System.getProperty("microedition.locale");
Implementation of Localization/Internationalization depends on the framework you are using.
Upvotes: 1