In ''start-the-development-server'' section, it is said:
> Since translation is turned on by default, the (admin) login screen may
be displayed in your own language, depending on your browser’s settings
and if Django has a translation for this language.
My locale language is not English, but the Django Admin did not recognize
this thing, and still displayed in English instead of my preferred
language, which is not consistent with what the tutorial said.
It seems that automatic localization with user language preference needs
middleware 'django.middleware.locale.LocaleMiddleware', but neither the
new project template nor the tutorial has configured or mentioned it
before.
This mismatch behavior made me confused for a little while. It might be
better to make a revision about it.
--
Ticket URL: <https://code.djangoproject.com/ticket/31495>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* easy: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/31495#comment:1>
* owner: nobody => Omkar Kulkarni
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/31495#comment:2>
* type: Uncategorized => Bug
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/31495#comment:3>
* has_patch: 0 => 1
Comment:
PR: https://github.com/django/django/pull/12861
--
Ticket URL: <https://code.djangoproject.com/ticket/31495#comment:4>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/31495#comment:5>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"b7f1c0d86d72df51aa2e25da79d99074b751c7e1" b7f1c0d8]:
{{{
#!CommitTicketReference repository=""
revision="b7f1c0d86d72df51aa2e25da79d99074b751c7e1"
Fixed #31495 - Corrected note about admin i18n in tutorial.
Thanks to Adam Johnson and Claude Paroz for review.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31495#comment:6>
Comment (by Carlton Gibson <carlton.gibson@…>):
In [changeset:"16bdb6b7baf884fad6885db18be78a69a55317a5" 16bdb6b7]:
{{{
#!CommitTicketReference repository=""
revision="16bdb6b7baf884fad6885db18be78a69a55317a5"
[3.0.x] Fixed #31495 - Corrected note about admin i18n in tutorial.
Thanks to Adam Johnson and Claude Paroz for review.
Backport of b7f1c0d86d72df51aa2e25da79d99074b751c7e1 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31495#comment:7>