Opened 13 years ago
Closed 13 years ago
#18365 closed Cleanup/optimization (fixed)
remind in the "set languages redirection view" that the i18n template context processor should be set
| Reported by: | anonymous | Owned by: | nickmartini |
|---|---|---|---|
| Component: | Documentation | Version: | 1.4 |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | yes | UI/UX: | no |
Description
Here https://docs.djangoproject.com/en/1.4/topics/i18n/translation/#the-set-language-redirect-view remind that 'django.core.context_processors.i18n' should be in the TEMPLATE_CONTEXT_PROCESSORS tuple in the settings.py.
I've just lost one hour in front of a cryptic error message (google didn't helped) and i18n works perfectly without this template context processor set.
Change History (4)
comment:1 by , 13 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|---|
| Type: | Uncategorized → Cleanup/optimization |
comment:2 by , 13 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:3 by , 13 years ago
| Has patch: | set |
|---|
Submitted pull request, needs review https://github.com/django/django/pull/345
comment:4 by , 13 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Indeed, this is necessary to put
LANGUAGESin the context.