Update issue 1290
Update issue 1916 Added support for country/region specific locales
This commit is contained in:
parent
a0238904b6
commit
1e67fc4cde
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue