Browse Source

Corrected function call

Ralfp 12 years ago
parent
commit
ad7dd2e4a2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      misago/apps/search/forms.py

+ 2 - 2
misago/apps/search/forms.py

@@ -46,7 +46,7 @@ class QuickSearchForm(Form):
                 if wait_for < 5:
                 if wait_for < 5:
                     raise forms.ValidationError(_("You can't perform one search so quickly after another. Please wait a moment and try again."))
                     raise forms.ValidationError(_("You can't perform one search so quickly after another. Please wait a moment and try again."))
                 else:
                 else:
-                    raise forms.ValidationError(ungettext(
+                    raise forms.ValidationError(ungettext_lazy(
                             "You can't perform one search so quickly after another. Please wait %(seconds)d second and try again.",
                             "You can't perform one search so quickly after another. Please wait %(seconds)d second and try again.",
                             "You can't perform one search so quickly after another. Please wait %(seconds)d seconds and try again.",
                             "You can't perform one search so quickly after another. Please wait %(seconds)d seconds and try again.",
                         wait_for) % {
                         wait_for) % {
@@ -65,7 +65,7 @@ class QuickSearchForm(Form):
                 if wait_for < 5:
                 if wait_for < 5:
                     raise forms.ValidationError(_("You can't perform one search so quickly after another. Please wait a moment and try again."))
                     raise forms.ValidationError(_("You can't perform one search so quickly after another. Please wait a moment and try again."))
                 else:
                 else:
-                    raise forms.ValidationError(ungettext(
+                    raise forms.ValidationError(ungettext_lazy(
                             "You can't perform one search so quickly after another. Please wait %(seconds)d second and try again.",
                             "You can't perform one search so quickly after another. Please wait %(seconds)d second and try again.",
                             "You can't perform one search so quickly after another. Please wait %(seconds)d seconds and try again.",
                             "You can't perform one search so quickly after another. Please wait %(seconds)d seconds and try again.",
                         wait_for) % {
                         wait_for) % {