bug 839380 – zh-hk locale should use zh-tw translation instead of zh-cn r=jchen a=akeybl
authorBrad Lassey <blassey@mozilla.com>
Mon, 11 Feb 2013 23:08:19 -0500
changeset 131385 36525224b14e8986c307530ed08724de5dd45c5d
parent 131384 98b4c33fc377e524511bc2b6b99acca7f0aa6fda
child 131386 da30029828eaf66016d30ad18d2c422521555da4
child 138214 8d594efff6e52dca4c27c91b422de4b6bc47b8ff
push id2323
push userbbajaj@mozilla.com
push dateMon, 01 Apr 2013 19:47:02 +0000
treeherdermozilla-beta@7712be144d91 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjchen, akeybl
bugs839380
milestone21.0a1
first release with
nightly linux32
36525224b14e / 21.0a1 / 20130212031120 / files
nightly linux64
36525224b14e / 21.0a1 / 20130212031120 / files
nightly mac
36525224b14e / 21.0a1 / 20130212031120 / files
nightly win32
36525224b14e / 21.0a1 / 20130212031120 / files
nightly win64
36525224b14e / 21.0a1 / 20130212031120 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 839380 – zh-hk locale should use zh-tw translation instead of zh-cn r=jchen a=akeybl
mobile/android/base/GeckoThread.java
--- a/mobile/android/base/GeckoThread.java
+++ b/mobile/android/base/GeckoThread.java
@@ -42,16 +42,21 @@ public class GeckoThread extends Thread 
         GeckoAppShell.getEventDispatcher().registerEventListener("Gecko:Ready", this);
     }
 
     private String initGeckoEnvironment() {
         // At some point while loading the gecko libs our default locale gets set
         // so just save it to locale here and reset it as default after the join
         Locale locale = Locale.getDefault();
 
+        if (locale.toString().equalsIgnoreCase("zh_hk")) {
+            locale = Locale.TRADITIONAL_CHINESE;
+            Locale.setDefault(locale);
+        }
+
         GeckoApp app = GeckoApp.mAppContext;
         String resourcePath = app.getApplication().getPackageResourcePath();
         String[] pluginDirs = null;
         try {
             pluginDirs = app.getPluginDirectories();
         } catch (Exception e) {
             Log.w(LOGTAG, "Caught exception getting plugin dirs.", e);
         }