pull translations properly when running from Windows EXE
This commit is contained in:
parent
ff8a88422c
commit
f6b9c234f7
|
@ -3234,7 +3234,10 @@ def run():
|
|||
locale_lang = locale_countrycode[0:2]
|
||||
user_countrycode = str(shared.config.get('bitmessagesettings', 'userlocale'))
|
||||
user_lang = user_countrycode[0:2]
|
||||
translation_path = "translations/bitmessage_"
|
||||
try:
|
||||
translation_path = os.path.join(sys._MEIPASS, "translations/bitmessage_")
|
||||
except Exception, e:
|
||||
translation_path = "translations/bitmessage_"
|
||||
|
||||
if shared.config.get('bitmessagesettings', 'userlocale') == 'system':
|
||||
# try to detect the users locale otherwise fallback to English
|
||||
|
|
Loading…
Reference in New Issue
Block a user