mirror of
https://github.com/onionshare/onionshare.git
synced 2025-03-14 18:06:30 -04:00
If a locale file includes a blank string, fallback to English instead of using the blank string
This commit is contained in:
parent
0a039b58a5
commit
8e900ace5c
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user