use string.format instead of old style (%) formatting
This commit is contained in:
@@ -135,7 +135,7 @@ Builder.load_string('''
|
||||
height: self.minimum_height
|
||||
Label:
|
||||
color: root.text_color
|
||||
text: _('From %d cosigners')%n.value
|
||||
text: _('From {} cosigners').format(n.value)
|
||||
Slider:
|
||||
id: n
|
||||
range: 2, 5
|
||||
@@ -143,7 +143,7 @@ Builder.load_string('''
|
||||
value: 2
|
||||
Label:
|
||||
color: root.text_color
|
||||
text: _('Require %d signatures')%m.value
|
||||
text: _('Require {} signatures').format(m.value)
|
||||
Slider:
|
||||
id: m
|
||||
range: 1, n.value
|
||||
|
||||
@@ -112,7 +112,7 @@ class TxDialog(Factory.Popup):
|
||||
if timestamp:
|
||||
self.date_str = datetime.fromtimestamp(timestamp).isoformat(' ')[:-3]
|
||||
elif exp_n:
|
||||
self.date_str = _('Within %d blocks') % exp_n if exp_n > 0 else _('unknown (low fee)')
|
||||
self.date_str = _('Within {} blocks').format(exp_n) if exp_n > 0 else _('unknown (low fee)')
|
||||
else:
|
||||
self.date_str = ''
|
||||
|
||||
|
||||
Reference in New Issue
Block a user