Browse files

Use 'ugettext' instead of 'ugettext_lazy' in 'cmsplugin_contact.nospa…


When rendering 'HoneypotWidget' language is already active and it is not necessary to use 'ugettext_lazy' as it returns object instance. Plus, string operator '%' will insert into string value of 'repr()' instead translated text. It results in incorrect HTML.
  • Loading branch information...
1 parent ea95740 commit 524044a2d4771c6c72739a4492a90f65eb6c707e @xdml xdml committed May 18, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 cmsplugin_contact/nospam/
2 cmsplugin_contact/nospam/
@@ -1,5 +1,5 @@
from django import forms
-from django.utils.translation import ugettext_lazy as _, get_language
+from django.utils.translation import ugettext as _, get_language
from django.utils.safestring import mark_safe

0 comments on commit 524044a

Please sign in to comment.