From d48c754ef2b6bb09514b06a8249f1dbe38413bf6 Mon Sep 17 00:00:00 2001 From: Nriver <6752679+Nriver@users.noreply.github.com> Date: Fri, 18 Aug 2023 11:07:31 +0800 Subject: [PATCH] fix Simplified Chinese language recognition --- app/src/main/java/dev/ukanth/ufirewall/Api.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/dev/ukanth/ufirewall/Api.java b/app/src/main/java/dev/ukanth/ufirewall/Api.java index 0ec9a3d2..cdba365a 100644 --- a/app/src/main/java/dev/ukanth/ufirewall/Api.java +++ b/app/src/main/java/dev/ukanth/ufirewall/Api.java @@ -3072,7 +3072,7 @@ public static Context updateBaseContextLocale(Context context) { String language = G.locale(); // Helper method to get saved language from SharedPreferences Locale locale = new Locale(language); - if (language.equals("zh_CN")) { + if (language.equals("zh") || language.equals("zh_CN")) { locale = Locale.SIMPLIFIED_CHINESE; } else if (language.equals("zh_TW")) { locale = Locale.TRADITIONAL_CHINESE;