#14637: There may an Internationalization bug in Forms ----------------------------------+----------------------------------------- Reporter: thefm...@gmail.com | Owner: nobody Status: new | Milestone: Component: Forms | Version: 1.2 Keywords: Internationalization | Stage: Unreviewed Has_patch: 0 | ----------------------------------+----------------------------------------- set
LANGUAGE_CODE = 'zh-CN' and create a form {{{ class RegisterForm(forms.Form): userName = forms.EmailField(max_length=80, label=u'电子邮箱'); userPass1 = forms.CharField(widget=forms.PasswordInput, min_length=6, max_length=30, label=u'用户密码'); userPass2 = forms.CharField(widget=forms.PasswordInput, min_length=6, max_length=30, label=u'确认密码'); }}} when I type 3 word in userPass1 according to django.po in site- packages/django/conf/locale/zh_Cn/LC_MESSAGE/django.po it should be {{{ #: forms/fields.py:139 #, python-format msgid "Ensure this value has at least %(min)d characters (it has %(length)d)." msgstr "确保该值最少为 %(min)d 个字符(其长度为 %(length)d)。" }}} but I just got a English error msg instead of a Chinese one -- Ticket URL: <http://code.djangoproject.com/ticket/14637> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.