Remove function call from translated string (#9778)

This commit is contained in:
Oliver 2025-06-14 12:15:20 +10:00 committed by GitHub
parent eb445be770
commit b02bc3842e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 3 deletions

View File

@ -716,10 +716,11 @@ def extract_serial_numbers(
raise ValidationError([_('No serial numbers found')])
if len(errors) == 0 and len(serials) != expected_quantity:
n = len(serials)
q = expected_quantity
raise ValidationError([
_(
f'Number of unique serial numbers ({len(serials)}) must match quantity ({expected_quantity})'
)
_(f'Number of unique serial numbers ({n}) must match quantity ({q})')
])
return serials