WordPress / wporg-main-2022

A block-based child theme for WordPress.org, plus local environment
72 stars 26 forks source link

Remove or adjust language suggestions on Rosetta sites #290

Closed ryelle closed 1 year ago

ryelle commented 1 year ago

On the main wordpress.org site, there's a block to suggest other languages of WP, which leads to the rosetta sites. If you're already on a rosetta site, the new redesign still shows the suggestion.

For example, on es.wordpress.org, I still get the bar.

WordPress is also available in 한국어Español.

Screen Shot 2023-07-25 at 18 09 37

On the old design, rosetta did not have this banner at all. We could remove it.

Or we could check the requested site and not show the suggestion for the current site. If someone accepts multiple languages, it would show the others. So on es.w.org I could see this instead:

WordPress is also available in 한국어.

Related ticket: Language Guess on homepage uses deprecated GlotPress project

StevenDufresne commented 1 year ago

Or we could check the requested site and not show the suggestion for the current site. If someone accepts multiple languages, it would show the others. So on es.w.org I could see this instead:

I would vote for this approach.

ryelle commented 1 year ago

I've just deployed an update to the language suggestion script, so that it should not suggest the language for the site you're currently on.