maccesch / cmsplugin-contact

Extendable contact plugin for django-cms with spam protection and i18n
BSD 2-Clause "Simplified" License
71 stars 62 forks source link

Use 'ugettext' instead of 'ugettext_lazy' in 'cmsplugin_contact.nospam.widgets.HoneypotWidget.render()' #40

Closed xdml closed 11 years ago

xdml commented 11 years ago

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.