X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e432f8579852df4ffc3010bc54bbabe452591956..7c273a0df15d034e985d0e3fad05653ae548dc54:/apps/catalogue/fields.py diff --git a/apps/catalogue/fields.py b/apps/catalogue/fields.py index 160167ef2..0478f9d1b 100644 --- a/apps/catalogue/fields.py +++ b/apps/catalogue/fields.py @@ -13,6 +13,7 @@ from django.forms.util import smart_unicode from django.utils import simplejson as json from django.utils.html import escape from django.utils.safestring import mark_safe +from django.utils.translation import ugettext_lazy as _ class JSONEncoder(json.JSONEncoder): @@ -42,7 +43,7 @@ class JSONFormField(forms.CharField): loads(value) return value except ValueError, e: - raise forms.ValidationError('Enter a valid JSON value. Error: %s' % e) + raise forms.ValidationError(_('Enter a valid JSON value. Error: %s') % e) class JSONField(models.TextField):