Skip to content


Subversion checkout URL

You can clone with
Download ZIP


language_chooser doesn't take `SITE_ID` into account #1873

Bouke opened this Issue · 5 comments

5 participants


in menus/templates/menu/language_chooser.html all languages are fetched:

{% get_available_languages as languages %}

However, using CMS_LANGUAGES I have defined a mixed set of languages depending on the SITE_ID. This setting should be taken into account for creating the language chooser, I suppose?


Is this 2.4 or 3?




needs a pull request and tests

@czpython czpython was assigned
@digi604 digi604 modified the milestone: Some Day, 3.0

Do we really need {% get_available_languages as languages %} string in language_chooser.html?
Context is populated by languages filtered by site by the language chooser templatetags (both in 2.4 and 3.0)


I have been working with the language_chooser, and I have noticed that the {% get_available_languages as languages %} is indeed redundant - and worse, buggy.
A languages variable is set in the context here
This context variable is then overridden by
However this new value is not reading from CMS_LANGUAGES, so ignores information such as - for example - if we have set a language to 'public': False.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.