classification
Title: Docs: On non-public translations, language picker fallback to "English"
Type: enhancement Stage:
Components: Documentation Versions: Python 3.7, Python 3.6, Python 2.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, mdk, ned.deily
Priority: normal Keywords:

Created on 2017-08-08 15:29 by mdk, last changed 2017-08-08 15:34 by ned.deily.

Messages (1)
msg299932 - (view) Author: Julien Palard (mdk) * Date: 2017-08-08 15:29
As, by default, "english" is selected, and as we're building translations far before rendering them public by adding them to the language switcher, there's a timespan where a human can voluntarily land on a translation with a language switcher unaware of this language.

The language switcher currently defaults to english, so english is selected. As "english" is already selected, one can't select "english" to navigate to the english version.

Solutions may be to just hide the select element on unknown translations, or display the unknown language tag. With more work and a "predicted" list of tags-names, it may be possible to also display the name of the language.


Code is here: https://github.com/python/cpython/blob/master/Doc/tools/static/switchers.js

I'll take a look, but if some want to do it, let me know.
History
Date User Action Args
2017-08-08 15:34:39ned.deilysetnosy: + ned.deily
2017-08-08 15:29:40mdkcreate