Re: debian.org Language Subdomain Proposal
Paul Wise <[email protected]>
| Newsgroups | gmane.linux.debian.devel.www |
|---|---|
| Message-ID | <CAKTje6H3-qYDajsHZGZLS450xgxCHi-mvy9hjVBHEQQC1jVxfA@mail.gmail.com> |
On Sat, Aug 3, 2019 at 6:41 PM Paul Wise wrote: > The cookie based language codes would be the easiest to implement and > have the least impact on how the site works I've done some research and updated the web server config to allow for this. Sending a POST request with a language code and desired sub-path will set the language cookie and also redirect to the requested path and there is a way to delete the cookie too. When the browser sends the lang cookie, that language gets prioritised by the normal web server content negotiation. https://salsa.debian.org/dsa-team/mirror/dsa-puppet/commit/eef0d1229a8d2627ffc8663eda9bd2d68a0ef09c I've also added language selection buttons on /intro/cn#override that can be used to override browser language preferences. https://salsa.debian.org/webmaster-team/webwml/commit/c646e774c01abc2ee3d32c65d6920ea4f03159dc Remaining thoughts: I wanted to get something working, we can change the design if folks prefer other mechanisms. Do we want the language selection buttons on every page or only on /intro/cn? If we don't like pressing buttons for language changes, we can restyle the buttons so they look like links if needed. The existing language links in the footer/etc that do not change the language cookie probably need to be kept so that search engines etc can find them. -- bye, pabs https://wiki.debian.org/PaulWise