Skip to content

Commit 81769b5

Browse files
committed
language_chooser fix and docs
1 parent e1bd3ee commit 81769b5

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

docs/upgrade/2.4.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,11 @@ of the new functionality in django 1.4 and can be found here:
128128

129129
What you need to do:
130130

131-
- Remove the MultilingualMiddleware from your settings.
132-
- Be sure the LocaleMiddleware is in your settings and that it comes after the SessionMiddleware.
133-
- Be sure that the cms.urls is included in a i18n_patterns::
131+
- Remove ``cms.middleware.multilingual.MultilingualURLMiddleware`` from your
132+
settings.
133+
- Be sure ``django.middleware.locale.LocaleMiddleware`` is in your settings,
134+
and that it comes after the SessionMiddleware.
135+
- Be sure that the cms.urls is included in a ``i18n_patterns``::
134136

135137
from django.conf.urls.defaults import *
136138
from django.conf.urls.i18n import i18n_patterns

menus/templates/menu/language_chooser.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% load i18n_compat menu_tags %}
1+
{% load i18n menu_tags %}
22
{% get_available_languages as languages %}
33
{% for language in languages %}
44
{% language language.0 %}

0 commit comments

Comments
 (0)