I'm getting the iso2 language code this way:
public String getLang(Locale language) return language.toString().substring(0,2).toLowerCase() }
Is there better way to do this?
edit: when i use getLanguage, i get an empty string.