mirror of
https://github.com/django/django.git
synced 2024-12-24 10:05:46 +00:00
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
This commit is contained in:
parent
5dc7be2192
commit
d77514e428
@ -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::
|
To activate or deactivate localization for a template block, use::
|
||||||
|
|
||||||
|
{% load l10n %}
|
||||||
|
|
||||||
{% localize on %}
|
{% localize on %}
|
||||||
{{ value }}
|
{{ value }}
|
||||||
{% endlocalize %}
|
{% endlocalize %}
|
||||||
@ -385,6 +387,8 @@ Forces localization of a single value.
|
|||||||
|
|
||||||
For example::
|
For example::
|
||||||
|
|
||||||
|
{% load l10n %}
|
||||||
|
|
||||||
{{ value|localize }}
|
{{ value|localize }}
|
||||||
|
|
||||||
To disable localization on a single value, use :tfilter:`unlocalize`. To control
|
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::
|
For example::
|
||||||
|
|
||||||
|
{% load l10n %}
|
||||||
|
|
||||||
{{ value|unlocalize }}
|
{{ value|unlocalize }}
|
||||||
|
|
||||||
To force localization of a single value, use :tfilter:`localize`. To
|
To force localization of a single value, use :tfilter:`localize`. To
|
||||||
|
Loading…
Reference in New Issue
Block a user