{{ form.error_dict|pluralize }}  works fine by adding an s, but for
other languages like french its not good enought we have to adapt the
article.
le journal = les journaux   (newspaper)
so i m trying to check if my has several errors to display the
appropriate message.

This does work
 {% if  {{ form.error_dict|pluralize }} %}
<h2>Veuillez corriger les {{ form.error_dict.items|length }} erreurs
suivantes</h2>
{% else %}
<h2>Veuillez corriger l'erreur suivante</h2>
{% endif %}

whats the trick ?
thank you.


--~--~---------~--~----~------------~-------~--~----~
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