X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/b7cdf38bdc5fbff4a13a7cf1aa4f3ff1b7232368..413f2eef720815b9430ce5831cd479ca910967fa:/apps/catalogue/forms.py?ds=inline diff --git a/apps/catalogue/forms.py b/apps/catalogue/forms.py index e6a6412f..4627eb9c 100644 --- a/apps/catalogue/forms.py +++ b/apps/catalogue/forms.py @@ -54,7 +54,7 @@ class DocumentCreateForm(forms.Form): def clean_cover(self): cover = self.cleaned_data['cover'] if cover.name.rsplit('.', 1)[-1].lower() not in ('jpg', 'jpeg', 'png', 'gif', 'tif', 'tiff'): - raise forms.ValidationError('The cover should be an image file (jpg/png/gif)') + raise forms.ValidationError(_('The cover should be an image file (jpg/png/gif)')) return file