[tor-commits] [orbot/master] ensure we are putting the right value in
n8fr8 at torproject.org
n8fr8 at torproject.org
Fri Jul 5 12:40:01 UTC 2019
commit 827b905ee66436662790d1137210856eba4833f5
Author: n8fr8 <nathan at guardianproject.info>
Date: Tue Jun 18 14:48:45 2019 -0400
ensure we are putting the right value in
---
app/src/main/java/org/torproject/android/settings/Languages.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/app/src/main/java/org/torproject/android/settings/Languages.java b/app/src/main/java/org/torproject/android/settings/Languages.java
index 58566f12..05ae96ce 100644
--- a/app/src/main/java/org/torproject/android/settings/Languages.java
+++ b/app/src/main/java/org/torproject/android/settings/Languages.java
@@ -80,16 +80,17 @@ public class Languages {
|| locale.equals(Locale.ENGLISH))
localeSet.add(locale);
}
+
for (Locale locale : localeSet) {
if (locale.equals(TIBETAN)) {
// include English name for devices without Tibetan font support
- tmpMap.put(TIBETAN.getLanguage(), "Tibetan བོད་སྐད།"); // Tibetan
+ tmpMap.put(TIBETAN.toString(), "Tibetan བོད་སྐད།"); // Tibetan
} else if (locale.equals(Locale.SIMPLIFIED_CHINESE)) {
tmpMap.put(Locale.SIMPLIFIED_CHINESE.toString(), "中文 (中国)"); // Chinese (China)
} else if (locale.equals(Locale.TRADITIONAL_CHINESE)) {
tmpMap.put(Locale.TRADITIONAL_CHINESE.toString(), "中文 (台灣)"); // Chinese (Taiwan)
} else {
- tmpMap.put(locale.getLanguage(), locale.getDisplayLanguage(locale));
+ tmpMap.put(locale.toString(), locale.getDisplayLanguage(locale));
}
}
More information about the tor-commits
mailing list