From c73362847a9f759ff67788dbc6de0d4b7a83f7d7 Mon Sep 17 00:00:00 2001 From: Yink Date: Sun, 29 Apr 2018 12:56:27 +0200 Subject: [PATCH] Fixed change from traditional to simplified chinese --- .../java/com/example/yink/amadeus/LangContext.java | 6 ++++++ app/src/main/res/values-zh-rCN/strings.xml | 2 +- app/src/main/res/values/strings.xml | 10 +++++----- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/com/example/yink/amadeus/LangContext.java b/app/src/main/java/com/example/yink/amadeus/LangContext.java index 4bcb74f..88f6730 100644 --- a/app/src/main/java/com/example/yink/amadeus/LangContext.java +++ b/app/src/main/java/com/example/yink/amadeus/LangContext.java @@ -37,6 +37,12 @@ public class LangContext extends ContextWrapper { locale = new Locale(langArr[0]); break; } + + if (lang.equals("zh-rTW")) + locale = Locale.TAIWAN; + else if (lang.equals("zh-rCN")) + locale = Locale.CHINA; + Locale.setDefault(locale); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { setSystemLocale(config, locale); diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index aac696a..60b2d9c 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -4,7 +4,7 @@ 连接到助手 连接中... 断开连接 - en + zh-rCN en-US 没有检测到Google App 来自助手的电话 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 854dede..16e7384 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -55,13 +55,13 @@ Nice to meet you, Okabe Rintaro. I\'m Makise Kurisu. I look forward to working with you. Anyway, can I ask a question? - Um� Senpai? Excuse me. - Hey Senpai, about what we were just talking about� + Um… Senpai? Excuse me. + Hey Senpai, about what we were just talking about… Uh, who is this? - Senpai, please, don\'t tell the others� + Senpai, please, don\'t tell the others… I\'m still not happy about that. That\s pure nonsense. - Let\'s see� My conclusion is that it\'s not possible. + Let\'s see… My conclusion is that it\'s not possible. That\'s probably because scientists haven\'t discovered something important yet. But we don\'t know for sure that it\'s impossible, I guess. A time machine, you said? @@ -70,7 +70,7 @@ I keep a secret diary. Modifying my memories? It\'s theoretically possible. For example, it would be possible to make me think my name was Christina. - Gah. Ah� Aaaaah. + Gah. Ah… Aaaaah. Awesome, he\'s really something! Nice! Oh no!