fixed the bug with getting the wrong locale
This commit is contained in:
parent
e5ef32279a
commit
f322696e20
|
@ -3286,7 +3286,7 @@ def run():
|
||||||
translator = QtCore.QTranslator()
|
translator = QtCore.QTranslator()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
translator.load("translations/bitmessage_" + str(locale.getlocale()[0]))
|
translator.load("translations/bitmessage_" + str(locale.getdefaultlocale()[0]))
|
||||||
except:
|
except:
|
||||||
# The above is not compatible with all versions of OSX.
|
# The above is not compatible with all versions of OSX.
|
||||||
translator.load("translations/bitmessage_en_US") # Default to english.
|
translator.load("translations/bitmessage_en_US") # Default to english.
|
||||||
|
|
Reference in New Issue
Block a user