mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-26 01:28:50 -05:00
Update issue 1290
Update issue 1916 Added support for country/region specific locales
This commit is contained in:
parent
a0238904b6
commit
1e67fc4cde
@ -50,6 +50,11 @@ public class K9Activity extends Activity
|
|||||||
{
|
{
|
||||||
locale = Locale.getDefault();
|
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
|
else
|
||||||
{
|
{
|
||||||
locale = new Locale(language);
|
locale = new Locale(language);
|
||||||
|
Loading…
Reference in New Issue
Block a user