minor fix re translated string

This commit is contained in:
SomberNight 2019-04-21 03:31:37 +02:00
parent 914d02ecd3
commit 2b717a8cef
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9
2 changed files with 4 additions and 6 deletions

View file

@ -243,9 +243,8 @@ class TxDialog(Factory.Popup):
to_delete |= self.wallet.get_depending_transactions(txid)
question = _("Are you sure you want to remove this transaction?")
if len(to_delete) > 1:
question = _(
"Are you sure you want to remove this transaction and {} child transactions?".format(len(to_delete) - 1)
)
question = (_("Are you sure you want to remove this transaction and {} child transactions?")
.format(len(to_delete) - 1))
def on_prompt(b):
if b:

View file

@ -610,9 +610,8 @@ class HistoryList(MyTreeView, AcceptFileDragDrop):
to_delete |= self.wallet.get_depending_transactions(delete_tx)
question = _("Are you sure you want to remove this transaction?")
if len(to_delete) > 1:
question = _(
"Are you sure you want to remove this transaction and {} child transactions?".format(len(to_delete) - 1)
)
question = (_("Are you sure you want to remove this transaction and {} child transactions?")
.format(len(to_delete) - 1))
answer = QMessageBox.question(self.parent, _("Please confirm"), question, QMessageBox.Yes, QMessageBox.No)
if answer == QMessageBox.No:
return