X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/b2d342589a7889a3b096e7192453d53bd28eed7d..HEAD:/src/picture/forms.py diff --git a/src/picture/forms.py b/src/picture/forms.py index 14706d9da..6041eb2f2 100644 --- a/src/picture/forms.py +++ b/src/picture/forms.py @@ -1,9 +1,7 @@ -# -*- coding: utf-8 -*- -# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. -# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Wolne Lektury. See NOTICE for more information. # from django import forms -from django.utils.translation import ugettext_lazy as _ from picture.models import Picture @@ -22,7 +20,7 @@ class PictureImportForm(forms.Form): self.cleaned_data['picture_xml_file'] = \ ContentFile(self.cleaned_data['picture_xml'].encode('utf-8')) else: - raise forms.ValidationError(_("Please supply an XML.")) + raise forms.ValidationError('Proszę dostarczyć XML.') if not self.cleaned_data['picture_image_file']: if self.cleaned_data['picture_image_data']: @@ -30,7 +28,7 @@ class PictureImportForm(forms.Form): ContentFile(b64decode( self.cleaned_data['picture_image_data'])) else: - raise forms.ValidationError(_("Please supply an image.")) + raise forms.ValidationError('Proszę dostarczyć obraz.') return super(PictureImportForm, self).clean()