If a locale file includes a blank string, fallback to English instead of using the blank string

This commit is contained in:
Micah Lee 2018-12-16 10:55:13 -08:00
parent 0a039b58a5
commit 8e900ace5c

View File

@ -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]