On Sat, 2006-09-30 at 06:32 +0530, Kenneth Gonsalves wrote:
> 
> On 29-Sep-06, at 9:16 PM, RajeshD wrote:
> 
> > It's not a good idea to mark the field_name for i18n translation. The
> > field name's value behaves like a variable name so you want that value
> > to be fixed and not translated.
> >
> > Your field would be defined like this:
> >
> > forms.CheckboxField(field_name='vote')
> >
> > The template is where you would mark the label 'Vote' for translation.
> > It would be something like this:
> >
> > {% load i18n %}
> > <p>{{ form.vote }} <label for="id_vote">{% trans 'Vote' %}</label></p>
> 
> did this, but am still not getting a checkbox - i only get 'Vote:'  
> and no checkbox.

Then something else is going wrong, because {{ form.vote }} is the right
way to do this. It's not a template syntax problem at the moment, it's
something else (but unfortunately, I have no idea what it could be).

Regards,
Malcolm


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to