From f322696e20ab05221de46a7f11953814807048e2 Mon Sep 17 00:00:00 2001 From: akh81 Date: Thu, 1 Aug 2013 18:21:10 -0500 Subject: [PATCH] fixed the bug with getting the wrong locale --- src/bitmessageqt/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py index 1d115af1..4a08f5b2 100644 --- a/src/bitmessageqt/__init__.py +++ b/src/bitmessageqt/__init__.py @@ -3286,7 +3286,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. -- 2.45.1