Code

Ticket #16075: ticket-16075.diff

File ticket-16075.diff, 875 bytes (added by Horst Gutmann <zerok@…>, 3 years ago)
Line 
1diff --git a/docs/topics/i18n/localization.txt b/docs/topics/i18n/localization.txt
2index 932a2c0..ed981ff 100644
3--- a/docs/topics/i18n/localization.txt
4+++ b/docs/topics/i18n/localization.txt
5@@ -355,6 +355,8 @@ This tag allows a more fine grained control of localization than
6 
7 To activate or deactivate localization for a template block, use::
8 
9+    {% load l10n %}
10+   
11     {% localize on %}
12         {{ value }}
13     {% endlocalize %}
14@@ -385,6 +387,8 @@ Forces localization of a single value.
15 
16 For example::
17 
18+    {% load l10n %}
19+
20     {{ value|localize }}
21 
22 To disable localization on a single value, use :tfilter:`unlocalize`. To control
23@@ -403,6 +407,8 @@ Forces a single value to be printed without localization.
24 
25 For example::
26 
27+    {% load l10n %}
28+
29     {{ value|unlocalize }}
30 
31 To force localization of a single value, use :tfilter:`localize`. To