diff options
author | Micah Lee <micah@micahflee.com> | 2018-12-16 10:55:13 -0800 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2018-12-16 10:55:13 -0800 |
commit | 1f3728e8c55389122f1d692d129980ec03b43780 (patch) | |
tree | 97f8a9b19d0b24ef0b5cb55ea144a5f229c6920a | |
parent | aa60fdab28f0448f1b27f2e0453466889dc07f13 (diff) | |
download | onionshare-1f3728e8c55389122f1d692d129980ec03b43780.tar.gz onionshare-1f3728e8c55389122f1d692d129980ec03b43780.zip |
If a locale file includes a blank string, fallback to English instead of using the blank string
-rw-r--r-- | onionshare/strings.py | 2 |
1 files changed, 1 insertions, 1 deletions
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] |