Author: russellm Date: 2010-10-08 10:36:15 -0500 (Fri, 08 Oct 2010) New Revision: 14015
Modified: django/trunk/docs/topics/i18n/internationalization.txt Log: Fixed #14421 -- Clarified the english in the i18n documentation. Thanks to Ned Batchelder for the report and patch. Modified: django/trunk/docs/topics/i18n/internationalization.txt =================================================================== --- django/trunk/docs/topics/i18n/internationalization.txt 2010-10-08 15:33:27 UTC (rev 14014) +++ django/trunk/docs/topics/i18n/internationalization.txt 2010-10-08 15:36:15 UTC (rev 14015) @@ -387,15 +387,14 @@ This is {{ book_t }} by {{ author_t }} {% endblocktrans %} -This tag is also in charge of handling another functionality: Pluralization. -To make use of it you should: +This tag also provides for pluralization. To use it: - * Designate and bind a counter value by using ``count``, such value will + * Designate and bind a counter value with the name ``count``. This value will be the one used to select the right plural form. * Specify both the singular and plural forms separating them with the - ``{% plural %}`` tag, which appears within ``{% blocktrans %}`` and - ``{% endblocktrans %}``. + ``{% plural %}`` tag within the ``{% blocktrans %}`` and + ``{% endblocktrans %}`` tags. An example:: @@ -414,7 +413,7 @@ {% endblocktrans %} When you both use the pluralization feature and bind values to local variables -in addition to the counter value, have in mind that the ``blocktrans`` +in addition to the counter value, keep in mind that the ``blocktrans`` construct is internally converted to an ``ungettext`` call. This means the same :ref:`notes regarding ungettext variables <pluralization-var-notes>` apply. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.