Closed GoogleCodeExporter closed 8 years ago
You could try something like this:
private Language getLanguage(final String displayLanguage) {
Locale[] locales = Locale.getAvailableLocales();
for (Locale locale : locales) {
if (displayLanguage.equalsIgnoreCase(locale.getDisplayLanguage())) {
return Language.fromString(locale.getLanguage());
}
}
return null;
}
Original comment by rich.mid...@gmail.com
on 6 Nov 2009 at 9:52
Original issue reported on code.google.com by
mivaa...@gmail.com
on 25 Oct 2009 at 9:38