diff options
| author | Ramiro Morales <cramm0@gmail.com> | 2010-12-01 15:09:56 +0000 |
|---|---|---|
| committer | Ramiro Morales <cramm0@gmail.com> | 2010-12-01 15:09:56 +0000 |
| commit | 0d6c945622feb8b25cbb845f4073c4e88a1ed5f4 (patch) | |
| tree | 7d7d58ba3bb043a24d396ec6d266b27d69d1498e /docs | |
| parent | 5eb62e1d942f194bd418c8e51da17605a08dc601 (diff) | |
[1.2.X] 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.
Backport of [14758] from trunk
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14759 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/i18n/internationalization.txt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/topics/i18n/internationalization.txt b/docs/topics/i18n/internationalization.txt index 04ecc73c25..b6847ea241 100644 --- a/docs/topics/i18n/internationalization.txt +++ b/docs/topics/i18n/internationalization.txt @@ -190,8 +190,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``. .. _lazy-translations: @@ -412,7 +411,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>` |
