Skip to content

Commit

Permalink
Clarified that filter arguments are passed as a single string to the …
Browse files Browse the repository at this point in the history
…translation support. Refs #6326.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7059 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
malcolmt committed Feb 3, 2008
1 parent f45dab3 commit 6183e0c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/i18n.txt
Expand Up @@ -292,6 +292,14 @@ translation string. Example::
In this case, both the tag and the filter will see the already-translated
string, so they don't need to be aware of translations.

.. note::
In this example, the translation infrastructure will be passed the string
``"yes,no"``, not the individual strings ``"yes"`` and ``"no"``. The
translated string will need to contain the comma so that the filter
parsing code knows how to split up the arguments. For example, a German
translator might translate the string ``"yes,no"`` as ``"ja,nein"``
(keeping the comma intact).

.. _Django templates: ../templates_python/

Working with lazy translation objects
Expand Down

0 comments on commit 6183e0c

Please sign in to comment.