locale: add lazy translations to missing ValidationErrors

This commit is contained in:
Herculino Trotta
2025-01-04 18:17:06 -03:00
parent 3c0a2d82ac
commit 5ccb9ff152
4 changed files with 12 additions and 10 deletions

View File

@@ -327,7 +327,7 @@ class TransferForm(forms.Form):
to_account = cleaned_data.get("to_account")
if from_account == to_account:
raise forms.ValidationError("From and To accounts must be different.")
raise forms.ValidationError(_("From and To accounts must be different."))
return cleaned_data