|
@@ -29,13 +29,13 @@ class ValidateThreadNameMixin(object):
|
|
|
data = self.cleaned_data['thread_name']
|
|
|
slug = slugify(data)
|
|
|
if len(slug) < self.request.settings['thread_name_min']:
|
|
|
- raise forms.ValidationError(ungettext_laxy(
|
|
|
+ raise forms.ValidationError(ungettext_lazy(
|
|
|
"Thread name must contain at least one alpha-numeric character.",
|
|
|
"Thread name must contain at least %(count)d alpha-numeric characters.",
|
|
|
self.request.settings['thread_name_min']
|
|
|
) % {'count': self.request.settings['thread_name_min']})
|
|
|
if len(data) > self.request.settings['thread_name_max']:
|
|
|
- raise forms.ValidationError(ungettext_laxy(
|
|
|
+ raise forms.ValidationError(ungettext_lazy(
|
|
|
"Thread name cannot be longer than %(count)d character.",
|
|
|
"Thread name cannot be longer than %(count)d characters.",
|
|
|
self.request.settings['thread_name_max']
|
|
@@ -47,7 +47,7 @@ class ValidatePostLengthMixin(object):
|
|
|
def clean_post(self):
|
|
|
data = self.cleaned_data['post']
|
|
|
if len(data) < self.request.settings['post_length_min']:
|
|
|
- raise forms.ValidationError(ungettext_laxy(
|
|
|
+ raise forms.ValidationError(ungettext_lazy(
|
|
|
"Post content cannot be empty.",
|
|
|
"Post content cannot be shorter than %(count)d characters.",
|
|
|
self.request.settings['post_length_min']
|