djangoproject.com icon indicating copy to clipboard operation
djangoproject.com copied to clipboard

Support switching languages on non-docs sites

Open tobiasmcnulty opened this issue 6 years ago • 6 comments

Right now, the docs site has a handy language switcher in the bottom right corner. For other sites, (I think) the only supported way of switching languages is to have your browser send an Accept-Language header. While this might work fine I think something that allows the user to pick a language (perhaps defaulting to whatever Accept-Language is) would be preferred

Google also recommends unique URLs for each language a page is served in (which is not currently supported, except for the docs site):

https://support.google.com/webmasters/answer/182192

(I guess we could do what they've done and add a query string to the URLs.)

What do others think? Should we steal the language switcher from the docs site and use it on other sites? Or add some new widget for this? Or just leave things the way they are?

tobiasmcnulty avatar Mar 12 '19 01:03 tobiasmcnulty

@tobiasmcnulty I would steal the language switcher for simplicity and uniformity.

m-aciek avatar Aug 24 '19 10:08 m-aciek

Sounds good to me. I haven't started on this and probably won't have time for awhile, so if anyone feels like picking it up feel free!

tobiasmcnulty avatar Aug 24 '19 11:08 tobiasmcnulty

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 05 '22 21:10 stale[bot]

Similar to #377. @pauloxnet Perhaps there's a mini-project here if we gather a group of similar tickets? 🤔

carltongibson avatar Oct 06 '22 06:10 carltongibson

I already replied in the #377 and added here labels.

pauloxnet avatar Oct 06 '22 07:10 pauloxnet

@carltongibson @pauloxnet I'll pick this up as I've started #377 by addition translation tags to it.

I've started to pull the language selector from the docs in. Will carry this one while you guys are enjoying yourselves 😂

marksweb avatar Oct 17 '22 00:10 marksweb