commit a80ed49f437b03aacc7be4f23da3dd9b9e469b55 Author: hiro hiro@torproject.org 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):