commit c7f3adb67ea6afd50fec60221ba711ddea110281
parent dc19cf1fa1083b4236755621a36c3642bf7a3bfc
Author: SomberNight <somber.night@protonmail.com>
Date: Wed, 16 Jan 2019 19:11:04 +0100
trezor: fix minor string formatting re translations
closes #4996
Diffstat:
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/electrum/plugins/keepkey/qt.py b/electrum/plugins/keepkey/qt.py
@@ -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)
diff --git a/electrum/plugins/safe_t/qt.py b/electrum/plugins/safe_t/qt.py
@@ -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)
@@ -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)
diff --git a/electrum/plugins/trezor/qt.py b/electrum/plugins/trezor/qt.py
@@ -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)
@@ -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)