Skip to content

Commit de2fb17

Browse files
committed
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.
1 parent 233a30f commit de2fb17

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/bitmessageqt/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2360,8 +2360,7 @@ def click_actionSettings(self):
23602360

23612361
lang = str(self.settingsDialogInstance.ui.languageComboBox.itemData(self.settingsDialogInstance.ui.languageComboBox.currentIndex()).toString())
23622362
shared.config.set('bitmessagesettings', 'userlocale', lang)
2363-
logger.debug("Setting locale to %s", lang)
2364-
change_translation(lang)
2363+
change_translation(l10n.getTranslationLanguage())
23652364

23662365
if int(shared.config.get('bitmessagesettings', 'port')) != int(self.settingsDialogInstance.ui.lineEditTCPPort.text()):
23672366
if not shared.safeConfigGetBoolean('bitmessagesettings', 'dontconnect'):

0 commit comments

Comments
 (0)