0
0
mirror of https://github.com/django/django.git synced 2024-11-30 07:06:18 +01:00

Removed reference to potential exception during template rendering-time from the ungettext() documentation. Exceptions at that point should be considered and reported as a bug.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14758 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Ramiro Morales 2010-12-01 15:06:25 +00:00
parent 2fa22a4b64
commit 4858a8d9f3

View File

@ -214,8 +214,7 @@ cardinality of the elements at play.
You would get a ``a format specification for argument 'name', as in
'msgstr[0]', doesn't exist in 'msgid'`` error when running
``django-admin.py compilemessages`` or a ``KeyError`` Python exception at
runtime.
``django-admin.py compilemessages``.
.. _contextual-markers:
@ -469,7 +468,7 @@ A more complex example::
That will cost $ {{ amount }} per {{ years }} years.
{% endblocktrans %}
When you both use the pluralization feature and bind values to local variables
When you use both the pluralization feature and bind values to local variables
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>`