diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2010-10-08 15:45:07 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2010-10-08 15:45:07 +0000 |
| commit | bbab38dc503a7d4c3e5c41d73e42fa9d6081e67b (patch) | |
| tree | 192cad8f5b27fed3620852552d3b00b368f6bb33 | |
| parent | 21be09dbb40ba7300b5b1fdb90cf25e8637a4971 (diff) | |
[1.2.X] Fixed #14421 -- Clarified the english in the i18n documentation. Thanks to Ned Batchelder for the report and patch.
Backport of r14015 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14023 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | docs/topics/i18n/internationalization.txt | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/docs/topics/i18n/internationalization.txt b/docs/topics/i18n/internationalization.txt index 879c7739fb..5fc347c89d 100644 --- a/docs/topics/i18n/internationalization.txt +++ b/docs/topics/i18n/internationalization.txt @@ -387,15 +387,14 @@ separate the pieces with ``and``:: 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 @@ A more complex example:: {% 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. |
