You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
prefer.
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.
The text was updated successfully, but these errors were encountered:
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.
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
settingallows 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
prefer.
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:
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.
The text was updated successfully, but these errors were encountered: