Converting all forms to use the "fake/null" gettext conversion function
Gettext doesn't actually get run right in the form but we do need to wrap the strings in _() so stuff extracts :)
This commit is contained in:
@@ -16,7 +16,10 @@
|
||||
|
||||
import wtforms
|
||||
|
||||
from mediagoblin.util import pass_to_ugettext as _
|
||||
|
||||
|
||||
class MediaCommentForm(wtforms.Form):
|
||||
comment_content = wtforms.TextAreaField(
|
||||
'Comment',
|
||||
[wtforms.validators.Required()])
|
||||
comment_content = wtforms.TextAreaField(
|
||||
_('Comment'),
|
||||
[wtforms.validators.Required()])
|
||||
|
||||
Reference in New Issue
Block a user