(trivial) do not use old-style (%) formatting inside translations
see f29cd810e3/electrum/i18n.py (L48)
This commit is contained in:
@@ -386,8 +386,8 @@ class PaymentIdentifier(Logger):
|
||||
raise Exception("Unexpected missing LNURL data")
|
||||
|
||||
if not (self.lnurl_data.min_sendable_sat <= amount_sat <= self.lnurl_data.max_sendable_sat):
|
||||
self.error = _('Amount must be between %d and %d sat.') \
|
||||
% (self.lnurl_data.min_sendable_sat, self.lnurl_data.max_sendable_sat)
|
||||
self.error = _('Amount must be between {} and {} sat.').format(
|
||||
self.lnurl_data.min_sendable_sat, self.lnurl_data.max_sendable_sat)
|
||||
self.set_state(PaymentIdentifierState.INVALID_AMOUNT)
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user