Re: newforms: custom error messages

2007-09-12 Thread SmileyChris
On Sep 12, 3:42 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > So whilst adding it is consistent, it's not really a common way to use > translation and shouldn't be necessary for that patch. True, I was getting confused about __all__ Anyway, the ticket now contains full tests and docs. Feel

Re: newforms: custom error messages

2007-09-11 Thread Malcolm Tredinnick
On Wed, 2007-09-12 at 03:34 +, SmileyChris wrote: [...] > PS: I'm no internationalization expert, but ugettext_lazy wasn't in > __all__ of django.utils.translation.__init__ so I had to add it in to > use it. I'm not overlooking something, am I? Well, you are and you aren't. You don't need to

newforms: custom error messages

2007-09-11 Thread SmileyChris
I've added a functional patch to the ticket http://code.djangoproject.com/ticket/3457 if some people want to try it out. Feel free to write some documentation or tests. ;) PS: I'm no internationalization expert, but ugettext_lazy wasn't in __all__ of django.utils.translation.__init__ so I had t

Re: newforms: custom error messages

2007-04-08 Thread Max Battcher
On 4/8/07, Ceph <[EMAIL PROTECTED]> wrote: > > There's an open ticket currently regarding custom error messages in > newforms: http://code.djangoproject.com/ticket/3457 > > I currently have an ugly hack in place that gives me an error_message= > parameter for the field types I use, but, it's ugly,

newforms: custom error messages

2007-04-08 Thread Ceph
There's an open ticket currently regarding custom error messages in newforms: http://code.djangoproject.com/ticket/3457 I currently have an ugly hack in place that gives me an error_message= parameter for the field types I use, but, it's ugly, and doesn't work entirely. I'm working on getting a r