preview request.LANGUAGE_CODE wrong #2653

welworx opened this Issue Feb 16, 2014 · 5 comments


None yet

3 participants

welworx commented Feb 16, 2014

the variable request.LANGUAGE_CODE has the value of the language i'm useing in the admin interface, not the one of the page i wanna see.

Admin Interface language: en

Page language: de => preview uses en

@digi604 digi604 added the blocker label Feb 18, 2014
@digi604 digi604 added this to the 3.0 milestone Feb 18, 2014
digi604 commented Feb 18, 2014

which version of the cms? what languages do you have in LANGUAGES and CMS_LANGUAGES?

welworx commented Feb 18, 2014

I'm using django-cms v 2.4.3

    ('de', 'German'),
    ('en', 'English'),

I do not set CMS_LANGUAGES, so it uses the one from LANGUAGES (

@digi604 digi604 modified the milestone: 3.0, 2.4.X Feb 18, 2014
yakky commented Feb 28, 2014

Can't reproduce.

  • remove CMS_LANGUAGES from cms.test_utils.cli
  • run python
  • Enter http://localhost:8000/de/admin (german admin)
  • Create a home page in german
  • Save
  • Create english title
  • Save
  • Click on "preview on site" button from the changeform of the english version
  • Open the toolbar by appending "?edit" to the url
  • Page is in english language, toolbar and admin stay in german
@yakky yakky self-assigned this Mar 1, 2014
yakky commented Mar 2, 2014

@welworx could you check against the bundled cms project using the steps above?

@yakky yakky removed the blocker label May 30, 2014
yakky commented Nov 10, 2015

Closing due to inactivity

@yakky yakky closed this Nov 10, 2015
@yakky yakky removed their assignment Nov 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment