Update issue 1290

Update issue 1916
Added support for country/region specific locales
This commit is contained in:
Fiouz 2010-08-12 11:03:19 +00:00
parent a0238904b6
commit 1e67fc4cde

View file

@ -50,6 +50,11 @@ public class K9Activity extends Activity
{
locale = Locale.getDefault();
}
else if (language.length() == 5 && language.charAt(2) == '_')
{
// language is in the form: en_US
locale = new Locale(language.substring(0, 2), language.substring(3));
}
else
{
locale = new Locale(language);