Converting all forms to use the "fake/null" gettext conversion function
authorChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 10 Aug 2011 17:07:59 +0000 (12:07 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 10 Aug 2011 17:07:59 +0000 (12:07 -0500)
Gettext doesn't actually get run right in the form but we do need to
wrap the strings in _() so stuff extracts :)

mediagoblin/auth/forms.py
mediagoblin/edit/forms.py
mediagoblin/submit/forms.py
mediagoblin/user_pages/forms.py

index 1b6bc7c2851d66aadf1c404d356bd3760440c896..917909c5995266eab555102e271856b9cd4588bf 100644 (file)
@@ -16,7 +16,7 @@
 
 import wtforms
 
-from mediagoblin.util import pass_to_ugettext as _
+from mediagoblin.util import fake_ugettext_passthrough as _
 
 
 class RegistrationForm(wtforms.Form):
index 8052f482108d0f5b1d4217d80d5fb9a03134522b..2f3ed203e5e6632bd9a7eaff9c85c5d1e25821c0 100644 (file)
@@ -18,7 +18,7 @@
 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):
index ccb62a036cd408e0de17cbdd6ada3d7e0859c9c1..241d32dcdee5c8989cb4a3788b99822f89298422 100644 (file)
@@ -18,7 +18,7 @@
 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):
index 8829b674e41ac9bf8727de485da5b55f32b61a9a..0489f76a64a489d603a2e7aa39200720f16dda5c 100644 (file)
 
 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()])