[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [orbot/master] ensure we are putting the right value in



commit 827b905ee66436662790d1137210856eba4833f5
Author: n8fr8 <nathan@xxxxxxxxxxxxxxxxxxxx>
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));
             }
         }
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits