mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Refs #32873 -- Removed settings.USE_L10N per deprecation timeline.
This commit is contained in:
parent
0be8095b25
commit
8d98f99a4a
19 changed files with 136 additions and 573 deletions
|
@ -1445,8 +1445,7 @@ The format passed can be one of the predefined ones :setting:`DATE_FORMAT`,
|
|||
specifiers shown in the table above. Note that predefined formats may vary
|
||||
depending on the current locale.
|
||||
|
||||
Assuming that :setting:`USE_L10N` is ``True`` and :setting:`LANGUAGE_CODE` is,
|
||||
for example, ``"es"``, then for::
|
||||
Assuming that :setting:`LANGUAGE_CODE` is, for example, ``"es"``, then for::
|
||||
|
||||
{{ value|date:"SHORT_DATE_FORMAT" }}
|
||||
|
||||
|
@ -2226,8 +2225,7 @@ This would display as "01h 23m".
|
|||
|
||||
Another example:
|
||||
|
||||
Assuming that :setting:`USE_L10N` is ``True`` and :setting:`LANGUAGE_CODE` is,
|
||||
for example, ``"de"``, then for::
|
||||
Assuming that :setting:`LANGUAGE_CODE` is, for example, ``"de"``, then for::
|
||||
|
||||
{{ value|time:"TIME_FORMAT" }}
|
||||
|
||||
|
@ -2586,8 +2584,7 @@ See :ref:`specifying-translation-strings-in-template-code`.
|
|||
--------
|
||||
|
||||
This library provides control over the localization of values in templates.
|
||||
You only need to load the library using ``{% load l10n %}``, but you'll often
|
||||
set :setting:`USE_L10N` to ``True`` so that localization is active by default.
|
||||
You only need to load the library using ``{% load l10n %}``.
|
||||
|
||||
See :ref:`topic-l10n-templates`.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue