Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#31495 closed Bug (fixed)

Documentation issue: The Django admin L10N behavior described in tutorial02 does not match the actual context

Reported by: ynyyn Owned by: Omkar Kulkarni
Component: Documentation Version: 3.0
Severity: Normal Keywords: documentation, tutorial
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

The tutorial is really great and comprehensive, and I followed it step by step from start to here,
https://docs.djangoproject.com/en/3.0/intro/tutorial02/#start-the-development-server

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.

Change History (7)

comment:1 by ynyyn, 4 years ago

Easy pickings: set

comment:2 by Omkar Kulkarni, 4 years ago

Owner: changed from nobody to Omkar Kulkarni
Status: newassigned

comment:3 by Omkar Kulkarni, 4 years ago

Triage Stage: UnreviewedAccepted
Type: UncategorizedBug

comment:5 by Carlton Gibson, 4 years ago

Triage Stage: AcceptedReady for checkin

comment:6 by GitHub <noreply@…>, 4 years ago

Resolution: fixed
Status: assignedclosed

In b7f1c0d8:

Fixed #31495 - Corrected note about admin i18n in tutorial.

Thanks to Adam Johnson and Claude Paroz for review.

comment:7 by Carlton Gibson <carlton.gibson@…>, 4 years ago

In 16bdb6b7:

[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

Note: See TracTickets for help on using tickets.
Back to Top