Commit 3c384e17 authored by Michal Čihař's avatar Michal Čihař

Started renderer for plural editor

parent 7837628b
from django import forms
from django.utils.translation import ugettext_lazy, ugettext as _
class PluralTextarea(forms.Textarea):
'''
Text area extension which possibly handles plurals.
'''
def render(self, name, value, attrs=None):
ret = super(PluralTextarea, self).render(name, value, attrs)
return ret
class TranslationForm(forms.Form):
checksum = forms.CharField(widget = forms.HiddenInput)
target = forms.CharField(widget = forms.Textarea, required = False)
target = forms.CharField(widget = PluralTextarea, required = False)
fuzzy = forms.BooleanField(label = ugettext_lazy('Fuzzy'), required = False)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment