Ticket #13000: lazy-translation-not-so-lazy.diff
File lazy-translation-not-so-lazy.diff, 1.4 KB (added by , 15 years ago) |
---|
-
contrib/auth/forms.py
13 13 """ 14 14 username = forms.RegexField(label=_("Username"), max_length=30, regex=r'^\w+$', 15 15 help_text = _("Required. 30 characters or fewer. Alphanumeric characters only (letters, digits and underscores)."), 16 error_message = _("This value must contain only letters, numbers and underscores."))16 error_messages = {'invalid': _("This value must contain only letters, numbers and underscores.")}) 17 17 password1 = forms.CharField(label=_("Password"), widget=forms.PasswordInput) 18 18 password2 = forms.CharField(label=_("Password confirmation"), widget=forms.PasswordInput, 19 19 help_text = _("Enter the same password as above, for verification.")) … … 47 47 class UserChangeForm(forms.ModelForm): 48 48 username = forms.RegexField(label=_("Username"), max_length=30, regex=r'^\w+$', 49 49 help_text = _("Required. 30 characters or fewer. Alphanumeric characters only (letters, digits and underscores)."), 50 error_message = _("This value must contain only letters, numbers and underscores."))50 error_messages = {'invalid': _("This value must contain only letters, numbers and underscores.")}) 51 51 52 52 class Meta: 53 53 model = User