Ticket #16075: ticket-16075.diff

File ticket-16075.diff, 875 bytes (added by Horst Gutmann <zerok@…>, 4 years ago)
  • docs/topics/i18n/localization.txt

    diff --git a/docs/topics/i18n/localization.txt b/docs/topics/i18n/localization.txt
    index 932a2c0..ed981ff 100644
    a b This tag allows a more fine grained control of localization than 
    355355
    356356To activate or deactivate localization for a template block, use::
    357357
     358    {% load l10n %}
     359   
    358360    {% localize on %}
    359361        {{ value }}
    360362    {% endlocalize %}
    Forces localization of a single value. 
    385387
    386388For example::
    387389
     390    {% load l10n %}
     391
    388392    {{ value|localize }}
    389393
    390394To disable localization on a single value, use :tfilter:`unlocalize`. To control
    Forces a single value to be printed without localization. 
    403407
    404408For example::
    405409
     410    {% load l10n %}
     411
    406412    {{ value|unlocalize }}
    407413
    408414To force localization of a single value, use :tfilter:`localize`. To
Back to Top