Opened 5 years ago
Closed 5 years ago
#31119 closed Uncategorized (invalid)
Localization always set to language 'en'
Reported by: | Raton | Owned by: | nobody |
---|---|---|---|
Component: | Internationalization | Version: | 3.0 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | yes |
Description (last modified by )
Till Django-2.2.9 in my app localization work fine but after update to 3.0.1 translation not work and no error.
In django 2.2.9 when i am set
request.session['_language'] = language_code
then i found django.utils.translation.get_language() is language_code
but in django 3.0.1
i found django.utils.translation.get_language() always en even i set request.session['_language'] = 'ja'
Change History (5)
comment:1 by , 5 years ago
Description: | modified (diff) |
---|
comment:2 by , 5 years ago
Description: | modified (diff) |
---|
comment:3 by , 5 years ago
Description: | modified (diff) |
---|
comment:4 by , 5 years ago
Description: | modified (diff) |
---|
comment:5 by , 5 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
That's expected and documented in release notes.
https://docs.djangoproject.com/en/3.0/releases/3.0/#miscellaneous
https://code.djangoproject.com/ticket/15902
https://github.com/django/django/commit/a8e2a9bac6e548d6