Skip to content

Commit 0276bc3

Browse files
author
kratm2
committed
fix translation: avoid f-string in _() call
1 parent 3a76481 commit 0276bc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

electrum/gui/qt/transaction_dialog.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,8 @@ def on_context_menu_for_outputs(self, pos: QPoint):
403403
if addr := out.address:
404404
if self.wallet.is_mine(addr):
405405
show_list += [(_("Address Details"), lambda: self.main_window.show_address(addr, parent=self))]
406-
copy_list += [(_(f"Copy {'On Chain ' if out.is_silent_payment() else ''}Address"),
407-
lambda: self.main_window.do_copy(addr))]
406+
label = _("Copy On-Chain Address") if out.is_silent_payment() else _("Copy Address")
407+
copy_list += [(label, lambda: self.main_window.do_copy(addr))]
408408
if out.is_silent_payment():
409409
copy_list += [(_("Copy Silent Payment Address"), lambda: self.main_window.do_copy(out.sp_addr.encoded))]
410410
else:

0 commit comments

Comments
 (0)