зеркало из https://github.com/mozilla/kitsune.git
[bug 620620] Localize some more labels in wiki and questions app.
This commit is contained in:
Родитель
6901229ccf
Коммит
17772305ae
|
@ -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())
|
||||
|
|
Загрузка…
Ссылка в новой задаче