From 8e900ace5cfcbe91226d62da7ff195fa2e89cb02 Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Sun, 16 Dec 2018 10:55:13 -0800 Subject: [PATCH] If a locale file includes a blank string, fallback to English instead of using the blank string --- onionshare/strings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onionshare/strings.py b/onionshare/strings.py index b730933d..643186dd 100644 --- a/onionshare/strings.py +++ b/onionshare/strings.py @@ -45,7 +45,7 @@ def load_strings(common): current_locale = common.settings.get('locale') strings = {} for s in translations[default_locale]: - if s in translations[current_locale]: + if s in translations[current_locale] and translations[current_locale][s] != "": strings[s] = translations[current_locale][s] else: strings[s] = translations[default_locale][s]