Ticket #5886: docs_i18n_patch.diff

File docs_i18n_patch.diff, 476 bytes (added by Dmitri Fedortchenko <zeraien@…>, 17 years ago)

Patch to include {{ _() }} syntax in i18n docs....

  • docs/i18n.txt

     
    288288translation string. Example::
    289289
    290290    {% some_special_tag _("Page not found") value|yesno:_("yes,no") %}
     291    {{ _("Page not found") }}
     292    {{ _("article")|title }}
    291293
    292294In this case, both the tag and the filter will see the already-translated
    293295string, so they don't need to be aware of translations.
Back to Top