On Mar 27, 11:39 pm, "SmileyChris" <[EMAIL PROTECTED]> wrote:
> On Mar 28, 9:03 am, "vfoley" <[EMAIL PROTECTED]> wrote:
>
> > Hello,
>
> > I rewrote the forms portion of an application by using newforms.  It's
> > pretty nice, however there is something extremely annoying: newforms
> > automatically adds a colon after labels (hopefully, my formatting is
> > correct):
>
> This is the way that it has been decided to handle the labels in the
> "lazy" methods. You aren't forced to use these methods.
>
> > P.S: This code is from 0.96, I haven't checked the Subversion tree.
>
> You won't see any difference, except that I have a ticket which will
> only add the colon if there is no other punctuation to be added soon.
> Hrm... I guess a ' ' could be added to my check for punctuation, in
> which case it would leave the colon off if you ended in a space. Meh,
> maybe that's a bit to "magic".

I think that this is a very bad solution. If the framework does
something small magically, like adding a colon, there has to be a way
to remove it without a *big* change like, for example, writing a
custom template, referencing every form-field by itself, just to
remove a colon.

Also, there simply are languages where this punctuation doesn't make
sense. Adding it automatically then telling international users that
they have to write a lot more code, because english developers wanted
to save one character is bad, I think. Imho, adding even more magic to
make it go away, makes even less sense.

Not to mention that there are a lot of layout choices that would make
this colon superfluous.

What's wrong with
  name = forms.CharField(label='Your name:')?

I'd definitely go for removing this altogether before it's to late.

Best regards from Germany,
Jonas


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to