[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [gettor/master] Assign default locale
commit a80ed49f437b03aacc7be4f23da3dd9b9e469b55
Author: hiro <hiro@xxxxxxxxxxxxxx>
Date: Wed May 22 19:18:25 2019 +0200
Assign default locale
---
gettor/utils/strings.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gettor/utils/strings.py b/gettor/utils/strings.py
index 2c7488c..6b3a1d7 100644
--- a/gettor/utils/strings.py
+++ b/gettor/utils/strings.py
@@ -92,7 +92,7 @@ def get_locales():
locales = json.load(f)
return locales
-def load_strings(current_locale):
+def load_strings(current_locale='en'):
"""
Loads translated strings and fallback to English
if the translation does not exist.
@@ -112,7 +112,7 @@ def load_strings(current_locale):
strings = {}
for s in translations[current_locale]:
strings[s] = translations[current_locale][s]
-
+
def translated(k):
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits