From 1e67fc4cde01adfc01aa7033cacfdc04933d93ce Mon Sep 17 00:00:00 2001 From: Fiouz Date: Thu, 12 Aug 2010 11:03:19 +0000 Subject: [PATCH] Update issue 1290 Update issue 1916 Added support for country/region specific locales --- src/com/fsck/k9/activity/K9Activity.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/com/fsck/k9/activity/K9Activity.java b/src/com/fsck/k9/activity/K9Activity.java index 548881d05..d0fa760e8 100644 --- a/src/com/fsck/k9/activity/K9Activity.java +++ b/src/com/fsck/k9/activity/K9Activity.java @@ -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);