Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #16075 -- Corrected localize template tag docs. Thanks, Horst G…

…utmann.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16371 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit d77514e428fa6735525a152061cc9350c5952544 1 parent 5dc7be2
Jannis Leidel authored June 11, 2011

Showing 1 changed file with 6 additions and 0 deletions. Show diff stats Hide diff stats

  1. 6  docs/topics/i18n/localization.txt
6  docs/topics/i18n/localization.txt
@@ -355,6 +355,8 @@ This tag allows a more fine grained control of localization than
355 355
 
356 356
 To activate or deactivate localization for a template block, use::
357 357
 
  358
+    {% load l10n %}
  359
+
358 360
     {% localize on %}
359 361
         {{ value }}
360 362
     {% endlocalize %}
@@ -385,6 +387,8 @@ Forces localization of a single value.
385 387
 
386 388
 For example::
387 389
 
  390
+    {% load l10n %}
  391
+
388 392
     {{ value|localize }}
389 393
 
390 394
 To disable localization on a single value, use :tfilter:`unlocalize`. To control
@@ -403,6 +407,8 @@ Forces a single value to be printed without localization.
403 407
 
404 408
 For example::
405 409
 
  410
+    {% load l10n %}
  411
+
406 412
     {{ value|unlocalize }}
407 413
 
408 414
 To force localization of a single value, use :tfilter:`localize`. To

0 notes on commit d77514e

Please sign in to comment.
Something went wrong with that request. Please try again.