Warn users when they try to visit a page that's not available in their preferred language #1950

dialelo opened this Issue Jun 21, 2013 · 2 comments

4 participants


It's considered a good practice to warn the user when she tries to visit a page
that's not translated to her preferred language. The CMS_LANGUAGES setting
allows you to fallback to another version of a page instead of redirecting you
to the home when the aforementioned page it's not available in the language you

My suggestion is to make it possible to specify a message to be shown whenever
the we fallback to the page in another language, something along the lines of:

The page that you requested is not available in your {preferred_language}, you
can read it in {available_languages}.

We can leverage django.contrib.messages for this.

Let me know what you think and I'd be more than happy to work on this myself,
it shouldn't be too difficult and it's a little usability improvement.


Related to this, I was just about to post an issue requesting a get_available_translations templatetag to supplement the get_available_languages tag... At present get_available_languages lists everything in CMS_LANGUAGES, but this isn't always want you want to display on a page when only a very few translations are likely to be available.

Divio AG member

I am not sure about using messages. But maybe different backends for this? A templatetag would be nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment