#5518: [newform-admin] - capitalized verbose names for models
--------------------------------------------------+-------------------------
Reporter: Petr Marhoun <[EMAIL PROTECTED]> | Owner: nobody
Status: new | Component:
Internationalization
Version: newforms-admin | Keywords: admin,
verbose_name
Stage: Unreviewed | Has_patch: 0
--------------------------------------------------+-------------------------
There is a difference between models and forms, now the preferred format
is:
{{{
#!python
class Contact(models.Model):
email = models.CharField(verbose_name=_('email'))
class ContactForm(forms.Form):
email = forms.CharField(label=_('Email'))
}}}
Why is once 'email' and once 'Email'? I think it is quite
inconsistent.
But it is specially bad for translators. Example: I have a model with
ten fields. I use form_for_model and form_for_instance. I realize that
I need a form with seven fields from model and some new fields. So I
have to translate the fields again - gettext doesn't know that 'email'
is similar to 'Email'.
I think it should be possible (not necessary) to use capitalized
verbose names in models. It means to uncapitalized some words in admin
- but it is possible, I do it in my personal branch.
I thought that this kind of change should be sent to django-developers
mailing list first. But there was no answer so there is a ticket.
Ticket #5426 is precondition for it.
I would like to create patch - if you think that it can be applied.
--
Ticket URL: <http://code.djangoproject.com/ticket/5518>
Django Code <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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---