1
0

format a few strings with str.format(). fix #3405

This commit is contained in:
ThomasV
2017-12-12 16:55:50 +01:00
parent 73cb6a8735
commit bc7051372f
3 changed files with 6 additions and 6 deletions

View File

@@ -35,7 +35,7 @@ from .qrtextedit import ShowQRTextEdit, ScanQRTextEdit
def seed_warning_msg(seed):
return ''.join([
"<p>",
_("Please save these %d words on paper (order is important). "),
_("Please save these {0} words on paper (order is important). "),
_("This seed will allow you to recover your wallet in case "
"of computer failure."),
"</p>",
@@ -45,7 +45,7 @@ def seed_warning_msg(seed):
"<li>" + _("Never type it on a website.") + "</li>",
"<li>" + _("Do not store it electronically.") + "</li>",
"</ul>"
]) % len(seed.split())
]).format(len(seed.split()))
class SeedLayout(QVBoxLayout):