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:
parent
c22d624af3
commit
7960ac985f
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
import wtforms
|
import wtforms
|
||||||
|
|
||||||
from mediagoblin.util import pass_to_ugettext as _
|
from mediagoblin.util import fake_ugettext_passthrough as _
|
||||||
|
|
||||||
|
|
||||||
class RegistrationForm(wtforms.Form):
|
class RegistrationForm(wtforms.Form):
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
import wtforms
|
import wtforms
|
||||||
|
|
||||||
from mediagoblin.util import tag_length_validator, TOO_LONG_TAG_WARNING
|
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):
|
class EditForm(wtforms.Form):
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
import wtforms
|
import wtforms
|
||||||
|
|
||||||
from mediagoblin.util import tag_length_validator
|
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):
|
class SubmitStartForm(wtforms.Form):
|
||||||
|
@ -16,7 +16,10 @@
|
|||||||
|
|
||||||
import wtforms
|
import wtforms
|
||||||
|
|
||||||
|
from mediagoblin.util import pass_to_ugettext as _
|
||||||
|
|
||||||
|
|
||||||
class MediaCommentForm(wtforms.Form):
|
class MediaCommentForm(wtforms.Form):
|
||||||
comment_content = wtforms.TextAreaField(
|
comment_content = wtforms.TextAreaField(
|
||||||
'Comment',
|
_('Comment'),
|
||||||
[wtforms.validators.Required()])
|
[wtforms.validators.Required()])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user