format a few strings with str.format(). fix #3405
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user