From d77514e428fa6735525a152061cc9350c5952544 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Sat, 11 Jun 2011 15:44:00 +0000 Subject: [PATCH] Fixed #16075 -- Corrected localize template tag docs. Thanks, Horst Gutmann. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16371 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/topics/i18n/localization.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/topics/i18n/localization.txt b/docs/topics/i18n/localization.txt index 932a2c0dfc..4215201f35 100644 --- a/docs/topics/i18n/localization.txt +++ b/docs/topics/i18n/localization.txt @@ -355,6 +355,8 @@ This tag allows a more fine grained control of localization than To activate or deactivate localization for a template block, use:: + {% load l10n %} + {% localize on %} {{ value }} {% endlocalize %} @@ -385,6 +387,8 @@ Forces localization of a single value. For example:: + {% load l10n %} + {{ value|localize }} 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. For example:: + {% load l10n %} + {{ value|unlocalize }} To force localization of a single value, use :tfilter:`localize`. To