From 8fe53dfd011902a80827bbfff0482fd351534b2c Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Sun, 6 Oct 2019 06:01:48 +0200 Subject: [PATCH] Settings: Languages: add Chinese and sort alphabetic --- .../java/org/mian/gitnex/fragments/SettingsFragment.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/mian/gitnex/fragments/SettingsFragment.java b/app/src/main/java/org/mian/gitnex/fragments/SettingsFragment.java index cd8cab9e..27955e0e 100644 --- a/app/src/main/java/org/mian/gitnex/fragments/SettingsFragment.java +++ b/app/src/main/java/org/mian/gitnex/fragments/SettingsFragment.java @@ -30,7 +30,7 @@ public class SettingsFragment extends Fragment { private Context ctx = null; - private static String[] langList = {"English", "French", "German", "Russian", "Arabic"}; + private static String[] langList = {"Arabic", "Chinese", "English", "French", "German", "Russian"}; private static int langSelectedChoice = 0; private static String[] timeList = {"Pretty", "Normal"}; @@ -247,6 +247,9 @@ public class SettingsFragment extends Fragment { case "Arabic": tinyDb.putString("locale", "ar"); break; + case "Chinese": + tinyDb.putString("locale", "zh"); + break; case "French": tinyDb.putString("locale", "fr"); break;