Ticket #14421: i18n.diff

File i18n.diff, 1.4 KB (added by Ned Batchelder, 14 years ago)
  • internationalization.txt

     
    387387    This is {{ book_t }} by {{ author_t }}
    388388    {% endblocktrans %}
    389389
    390 This tag is also in charge of handling another functionality: Pluralization.
    391 To make use of it you should:
     390This tag also provides for pluralization.  To use it:
    392391
    393     * Designate and bind a counter value by using ``count``, such value will
     392    * Designate and bind a counter value with the name ``count``. This value will
    394393      be the one used to select the right plural form.
    395394
    396395    * Specify both the singular and plural forms separating them with the
    397       ``{% plural %}`` tag, which appears within ``{% blocktrans %}`` and
    398       ``{% endblocktrans %}``.
     396      ``{% plural %}`` tag within the ``{% blocktrans %}`` and
     397      ``{% endblocktrans %}`` tags.
    399398
    400399An example::
    401400
     
    414413    {% endblocktrans %}
    415414
    416415When you both use the pluralization feature and bind values to local variables
    417 in addition to the counter value, have in mind that the ``blocktrans``
     416in addition to the counter value, keep in mind that the ``blocktrans``
    418417construct is internally converted to an ``ungettext`` call. This means the
    419418same :ref:`notes regarding ungettext variables <pluralization-var-notes>`
    420419apply.
Back to Top