Gettext doesn't actually get run right in the form but we do need to
wrap the strings in _() so stuff extracts :)
import wtforms
-from mediagoblin.util import pass_to_ugettext as _
+from mediagoblin.util import fake_ugettext_passthrough as _
class RegistrationForm(wtforms.Form):
import wtforms
from mediagoblin.util import tag_length_validator, TOO_LONG_TAG_WARNING
-from mediagoblin.util import pass_to_ugettext as _
+from mediagoblin.util import fake_ugettext_passthrough as _
class EditForm(wtforms.Form):
import wtforms
from mediagoblin.util import tag_length_validator
-from mediagoblin.util import pass_to_ugettext as _
+from mediagoblin.util import fake_ugettext_passthrough as _
class SubmitStartForm(wtforms.Form):
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()])