Skip to content

Commit

Permalink
Keep system language when changing settings
Browse files Browse the repository at this point in the history
- when language was set to "system settings" and you changed any setting
  while BM was running, it switched the language to English.
  • Loading branch information
PeterSurda committed Aug 14, 2016
1 parent 233a30f commit de2fb17
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/bitmessageqt/__init__.py
Expand Up @@ -2360,8 +2360,7 @@ def click_actionSettings(self):

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'):
Expand Down

0 comments on commit de2fb17

Please sign in to comment.