Page MenuHomePhabricator

Donatewiki should automatically show es-419/pt-br content instead of es/pt in Latam countries
Open, LowPublic

Description

This isn't crucial, as we can make sure to pass es-419 as the language code in email links which is the bulk of traffic. But I don't know how much or even if that code is used in browser settings e.g. for the people coming from sidebar links. So it would be nice if donatewiki could be somewhat smart about this.

See also pt / pt-br

I wonder if hacking MediaWiki:Lang is one way to do this?

Event Timeline

Simply hacking MediaWiki:Lang won't work as that doesn't have any awareness of the country.

It's ugly but I think we could make a new template which wraps {{int:lang}} and pass {{{country}}} to it every time for the LATAM switching. But would have to replace all usage of {{int:lang}} which is used a lot and annoyingly isn't tracked in WhatLinksHere

Dropping this to Low priority, I can't really see getting to it before the campaigns.

@Pcoombe: Removing task assignee as this open task has been assigned for more than two years - See the email sent to task assignee on Feburary 22nd, 2023.
Please assign this task to yourself again if you still realistically [plan to] work on this task - it would be welcome! :)
If this task has been resolved in the meantime, or should not be worked on by anybody ("declined"), please update its task status via "Add Action… 🡒 Change Status".
Also see https://www.mediawiki.org/wiki/Bug_management/Assignee_cleanup for tips how to best manage your individual work in Phabricator. Thanks!