[Android] VLCApplication: extend locale switching to zh-TW

Edward Wang git at videolan.org
Fri Dec 14 21:53:57 CET 2012


vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Thu Dec 13 22:22:57 2012 -0500| [827c152e35ca93a75bb209e8bb0bf00e9f2e2aed] | committer: Edward Wang

VLCApplication: extend locale switching to zh-TW

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=827c152e35ca93a75bb209e8bb0bf00e9f2e2aed
---

 vlc-android/src/org/videolan/vlc/VLCApplication.java |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/VLCApplication.java b/vlc-android/src/org/videolan/vlc/VLCApplication.java
index fb4ba56..250badb 100644
--- a/vlc-android/src/org/videolan/vlc/VLCApplication.java
+++ b/vlc-android/src/org/videolan/vlc/VLCApplication.java
@@ -43,7 +43,9 @@ public class VLCApplication extends Application {
         if (p != null && !p.equals("")) {
             Locale locale;
             // workaround due to region code
-            if(p.startsWith("zh")) {
+            if(p.equals("zh-TW")) {
+                locale = Locale.TRADITIONAL_CHINESE;
+            } else if(p.startsWith("zh")) {
                 locale = Locale.CHINA;
             } else {
                 locale = new Locale(p);



More information about the Android mailing list