Merge pull request #363 from akh81/locale-bug-fix

fixed the bug with getting the wrong locale
This commit is contained in:
Jonathan Warren 2013-08-02 08:14:36 -07:00
commit db31cb4147

View File

@ -3289,7 +3289,7 @@ def run():
translator = QtCore.QTranslator()
try:
translator.load("translations/bitmessage_" + str(locale.getlocale()[0]))
translator.load("translations/bitmessage_" + str(locale.getdefaultlocale()[0]))
except:
# The above is not compatible with all versions of OSX.
translator.load("translations/bitmessage_en_US") # Default to english.