mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
[1.6.x] Fixed #23665 -- Noted precedence of settings.USE_L10N in MONTH_DAY_FORMAT and YEAR_MONTH.
Backport of 4f90c99635149fae2f488c03f0b52303fe97e0aa from master
This commit is contained in:
parent
f31e9c7a9d
commit
159978e5c0
@ -1490,6 +1490,9 @@ drilldown, the header for a given day displays the day and month. Different
|
|||||||
locales have different formats. For example, U.S. English would say
|
locales have different formats. For example, U.S. English would say
|
||||||
"January 1," whereas Spanish might say "1 Enero."
|
"January 1," whereas Spanish might say "1 Enero."
|
||||||
|
|
||||||
|
Note that if :setting:`USE_L10N` is set to ``True``, then the corresponding
|
||||||
|
locale-dictated format has higher precedence and will be applied.
|
||||||
|
|
||||||
See :tfilter:`allowed date format strings <date>`. See also
|
See :tfilter:`allowed date format strings <date>`. See also
|
||||||
:setting:`DATE_FORMAT`, :setting:`DATETIME_FORMAT`,
|
:setting:`DATE_FORMAT`, :setting:`DATETIME_FORMAT`,
|
||||||
:setting:`TIME_FORMAT` and :setting:`YEAR_MONTH_FORMAT`.
|
:setting:`TIME_FORMAT` and :setting:`YEAR_MONTH_FORMAT`.
|
||||||
@ -2050,6 +2053,9 @@ drilldown, the header for a given month displays the month and the year.
|
|||||||
Different locales have different formats. For example, U.S. English would say
|
Different locales have different formats. For example, U.S. English would say
|
||||||
"January 2006," whereas another locale might say "2006/January."
|
"January 2006," whereas another locale might say "2006/January."
|
||||||
|
|
||||||
|
Note that if :setting:`USE_L10N` is set to ``True``, then the corresponding
|
||||||
|
locale-dictated format has higher precedence and will be applied.
|
||||||
|
|
||||||
See :tfilter:`allowed date format strings <date>`. See also
|
See :tfilter:`allowed date format strings <date>`. See also
|
||||||
:setting:`DATE_FORMAT`, :setting:`DATETIME_FORMAT`, :setting:`TIME_FORMAT`
|
:setting:`DATE_FORMAT`, :setting:`DATETIME_FORMAT`, :setting:`TIME_FORMAT`
|
||||||
and :setting:`MONTH_DAY_FORMAT`.
|
and :setting:`MONTH_DAY_FORMAT`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user