[bug 620620] Localize some more labels in wiki and questions app.

This commit is contained in:
Paul Craciunoiu 2010-12-21 10:47:55 -08:00
Родитель 6901229ccf
Коммит 17772305ae
2 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -172,6 +172,7 @@ class NewQuestionForm(EditQuestionForm):
class AnswerForm(forms.Form):
"""Form for replying to a question."""
content = StrippedCharField(
label=_lazy('Content:'),
min_length=5,
max_length=10000,
widget=forms.Textarea(),

Просмотреть файл

@ -174,7 +174,7 @@ class RevisionForm(forms.ModelForm):
'min_length': CONTENT_SHORT,
'max_length': CONTENT_LONG})
comment = StrippedCharField(required=False)
comment = StrippedCharField(required=False, label=_lazy(u'Comment:'))
class Meta(object):
model = Revision
@ -202,9 +202,10 @@ class RevisionForm(forms.ModelForm):
class ReviewForm(forms.Form):
comment = StrippedCharField(max_length=255, widget=forms.Textarea(),
required=False,
required=False, label=_lazy(u'Comment:'),
error_messages={'max_length': COMMENT_LONG})
significance = forms.ChoiceField(
label=_lazy(u'Significance:'),
choices=SIGNIFICANCES, initial=SIGNIFICANCES[0][0],
required=False, widget=forms.RadioSelect())