ttrezor: fix minor string formatting re translations - electrum - Electrum Bitcoin wallet (HTM) git clone https://git.parazyd.org/electrum (DIR) Log (DIR) Files (DIR) Refs (DIR) Submodules --- (DIR) commit c7f3adb67ea6afd50fec60221ba711ddea110281 (DIR) parent dc19cf1fa1083b4236755621a36c3642bf7a3bfc (HTM) Author: SomberNight <somber.night@protonmail.com> Date: Wed, 16 Jan 2019 19:11:04 +0100 ttrezor: fix minor string formatting re translations closes #4996 Diffstat: M electrum/plugins/keepkey/qt.py | 2 +- M electrum/plugins/safe_t/qt.py | 4 ++-- M electrum/plugins/trezor/qt.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) --- (DIR) diff --git a/electrum/plugins/keepkey/qt.py b/electrum/plugins/keepkey/qt.py t@@ -432,7 +432,7 @@ class SettingsDialog(WindowModalDialog): def slider_moved(): mins = timeout_slider.sliderPosition() - timeout_minutes.setText(_("%2d minutes") % mins) + timeout_minutes.setText(_("{:2d} minutes").format(mins)) def slider_released(): config.set_session_timeout(timeout_slider.sliderPosition() * 60) (DIR) diff --git a/electrum/plugins/safe_t/qt.py b/electrum/plugins/safe_t/qt.py t@@ -111,7 +111,7 @@ class QtPlugin(QtPluginBase): bg = QButtonGroup() for i, count in enumerate([12, 18, 24]): rb = QRadioButton(gb) - rb.setText(_("%d words") % count) + rb.setText(_("{:d} words").format(count)) bg.addButton(rb) bg.setId(rb, i) hbox1.addWidget(rb) t@@ -317,7 +317,7 @@ class SettingsDialog(WindowModalDialog): def slider_moved(): mins = timeout_slider.sliderPosition() - timeout_minutes.setText(_("%2d minutes") % mins) + timeout_minutes.setText(_("{:2d} minutes").format(mins)) def slider_released(): config.set_session_timeout(timeout_slider.sliderPosition() * 60) (DIR) diff --git a/electrum/plugins/trezor/qt.py b/electrum/plugins/trezor/qt.py t@@ -205,7 +205,7 @@ class QtPlugin(QtPluginBase): bg_numwords = QButtonGroup() for i, count in enumerate([12, 18, 24]): rb = QRadioButton(gb) - rb.setText(_("%d words") % count) + rb.setText(_("{:d} words").format(count)) bg_numwords.addButton(rb) bg_numwords.setId(rb, i) hbox1.addWidget(rb) t@@ -407,7 +407,7 @@ class SettingsDialog(WindowModalDialog): def slider_moved(): mins = timeout_slider.sliderPosition() - timeout_minutes.setText(_("%2d minutes") % mins) + timeout_minutes.setText(_("{:2d} minutes").format(mins)) def slider_released(): config.set_session_timeout(timeout_slider.sliderPosition() * 60)