Go to navigator.language by default
Apparently the majority of people want English docs, so while it's nice and all to have multiple languages, it might be best to default to English (or the navigator's default language) and then allow people to switch to the correct language manually.
My proposed solution to this is:
- Make
/redirect to/<trimmed navigator.language>unless you've gone to/?noredir=true - Put the current docs short-name and flag in the top-right, and make clicking it go to
/?noredir=true
The / redirect will need to use JS because GitHub Pages but that's not really an issue. If people without JS click it they'll just see the page with all the flags.
I'd suggest introducing a small dropdown so quick changing is possible (currently isn't). Sometimes i want to search the german docs and link something in for ex. english on the forums. Currently i have to manually change the url for this :/
I'd be fine with english as the default language and a nice Frontpage, too.
I agree with this.
In addition, I think it would be nice to add a message at the top if the visitor has landed at a page that's not their own locale.
E.g. I post a link on the forums with /en/....
Someone with their locale set to German who visits the link will get a message (just a small thing at the top) to say "Also available in German" with a link that goes to /de/...
I put this issue on the latest SpongeDocs Pop Quiz and there is some good feedback there too. The general consensus seems to be DO IT DO IT DO IT.
@lukegb did you intend to tackle this issue yourself, or should I tack on a "Help Wanted" sign?
AFAICT this issues is now obsolete as the user can choose their language while entering the docs or later in the left lower corner. Also the search input automatically assumes the English locale. Or is that one click really that relevant?