From de2fb17959f9098416a8711ea2419692c31f1b5e Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Sun, 14 Aug 2016 12:01:00 +0200 Subject: [PATCH] Keep system language when changing settings - when language was set to "system settings" and you changed any setting while BM was running, it switched the language to English. --- src/bitmessageqt/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py index adca4c6c..f3c715df 100644 --- a/src/bitmessageqt/__init__.py +++ b/src/bitmessageqt/__init__.py @@ -2360,8 +2360,7 @@ class MyForm(settingsmixin.SMainWindow): lang = str(self.settingsDialogInstance.ui.languageComboBox.itemData(self.settingsDialogInstance.ui.languageComboBox.currentIndex()).toString()) shared.config.set('bitmessagesettings', 'userlocale', lang) - logger.debug("Setting locale to %s", lang) - change_translation(lang) + change_translation(l10n.getTranslationLanguage()) if int(shared.config.get('bitmessagesettings', 'port')) != int(self.settingsDialogInstance.ui.lineEditTCPPort.text()): if not shared.safeConfigGetBoolean('bitmessagesettings', 'dontconnect'):