Django

Code

Changeset 7059

Show
Ignore:
Timestamp:
02/02/08 19:49:34 (7 months ago)
Author:
mtredinnick
Message:

Clarified that filter arguments are passed as a single string to the translation support. Refs #6326.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/i18n.txt

    r6765 r7059  
    292292In this case, both the tag and the filter will see the already-translated 
    293293string, so they don't need to be aware of translations. 
     294 
     295.. note:: 
     296    In this example, the translation infrastructure will be passed the string 
     297    ``"yes,no"``, not the individual strings ``"yes"`` and ``"no"``. The 
     298    translated string will need to contain the comma so that the filter 
     299    parsing code knows how to split up the arguments. For example, a German 
     300    translator might translate the string ``"yes,no"`` as ``"ja,nein"`` 
     301    (keeping the comma intact). 
    294302 
    295303.. _Django templates: ../templates_python/