Browse Source

minor fix re translated string

master
SomberNight 7 years ago
parent
commit
2b717a8cef
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
  1. 5
      electrum/gui/kivy/uix/dialogs/tx_dialog.py
  2. 5
      electrum/gui/qt/history_list.py

5
electrum/gui/kivy/uix/dialogs/tx_dialog.py

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

5
electrum/gui/qt/history_list.py

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

Loading…
Cancel
Save