aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/user_pages/forms.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-08-10 12:07:59 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-08-10 12:07:59 -0500
commit7960ac985f9b5a80063f21012d53793cb2d22dd9 (patch)
tree2b46212789898fc006ab4e6481efcbc47e6cee6e /mediagoblin/user_pages/forms.py
parentc22d624af3cc473d3b31baaf6f1a32a498a949e0 (diff)
downloadmediagoblin-7960ac985f9b5a80063f21012d53793cb2d22dd9.tar.lz
mediagoblin-7960ac985f9b5a80063f21012d53793cb2d22dd9.tar.xz
mediagoblin-7960ac985f9b5a80063f21012d53793cb2d22dd9.zip
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 :)
Diffstat (limited to 'mediagoblin/user_pages/forms.py')
-rw-r--r--mediagoblin/user_pages/forms.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/mediagoblin/user_pages/forms.py b/mediagoblin/user_pages/forms.py
index 8829b674..0489f76a 100644
--- a/mediagoblin/user_pages/forms.py
+++ b/mediagoblin/user_pages/forms.py
@@ -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()])