mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-24 13:59:20 -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
aa60fdab28
commit
1f3728e8c5
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ def load_strings(common):
|
||||||
current_locale = common.settings.get('locale')
|
current_locale = common.settings.get('locale')
|
||||||
strings = {}
|
strings = {}
|
||||||
for s in translations[default_locale]:
|
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]
|
strings[s] = translations[current_locale][s]
|
||||||
else:
|
else:
|
||||||
strings[s] = translations[default_locale][s]
|
strings[s] = translations[default_locale][s]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue