Ticket #15908: 15908.link_pluralize_to_blocktrans.diff

File 15908.link_pluralize_to_blocktrans.diff, 931 bytes (added by Julien Phalip, 13 years ago)
  • docs/ref/templates/builtins.txt

    diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt
    index 3b650f1..2216b6e 100644
    a b Example::  
    17941794
    17951795    You have {{ num_cherries }} cherr{{ num_cherries|pluralize:"y,ies" }}.
    17961796
     1797.. note:: Use :ttag:`blocktrans` to pluralize translated strings.
     1798
    17971799.. templatefilter:: pprint
    17981800
    17991801pprint
  • docs/topics/i18n/internationalization.txt

    diff --git a/docs/topics/i18n/internationalization.txt b/docs/topics/i18n/internationalization.txt
    index d4c436e..13796e4 100644
    a b It's not possible to mix a template variable inside a string within ``{% trans  
    467467%}``. If your translations require strings with variables (placeholders), use
    468468``{% blocktrans %}`` instead.
    469469
     470.. templatetag:: blocktrans
     471
    470472``blocktrans`` template tag
    471473---------------------------
    472474
Back to Top