Page MenuHomePhabricator

punjabi.wikimedia.org: Change site language code from fake 'punjabi' to 'pa'
Closed, ResolvedPublic

Description

According to SiteMatrix, https://punjabi.wikimedia.org uses language punjabi which is not a valid ISO language code. Should either be en (to keep things as they are) or pa (like pawiki).

Event Timeline

Change 530769 had a related patch set uploaded (by MarcoAurelio; owner: MarcoAurelio):
[operations/mediawiki-config@master] Change language code for punjabiwikimedia

https://gerrit.wikimedia.org/r/530769

MarcoAurelio triaged this task as Low priority.

We should probably do the same for all special wikis listed in the SiteMatrix if it's doable.

Krinkle renamed this task from punjabi.wikipedia: change fake language 'punjabi' to 'pa' to punjabi.wikimedia.org: Change site language code from fake 'punjabi' to 'pa'.Aug 18 2019, 11:55 AM

We should probably do the same for all special wikis listed in the SiteMatrix if it's doable.

We already do that:

'wgLanguageCode' => [
	'default' => '$lang',

	'special' => 'en',

For example, this is how "special" wikis like Commons and Meta-Wiki get set to lang="en", without dedicated configuration.

The reason punjabiwikimedia is set to "punjabi" is because it is actually not a "special" wiki, it is a "chapter" wiki (which includes user-group wikis). For those, we always set a language code in wmf-config because their $lang subdomain is the country code or user group abbreviation, which is often (but not always) different from the relevant language code.

I overlooked the 'special' dblist check. However there are other wikis with wrong or nonexistant language codes in the Special section of SiteMatrix that should be reviewed just in case we're in the same situation as this one, if there's any. Thanks.

Change 530769 merged by jenkins-bot:
[operations/mediawiki-config@master] Change language code for punjabiwikimedia

https://gerrit.wikimedia.org/r/530769

Mentioned in SAL (#wikimedia-operations) [2019-08-22T23:13:28Z] <urbanecm@deploy1001> Synchronized wmf-config/InitialiseSettings.php: SWAT: 872f4b0: Change language code for punjabiwikimedia (T230680) (duration: 00m 48s)

Mentioned in SAL (#wikimedia-operations) [2019-08-22T23:15:01Z] <urbanecm@deploy1001> Synchronized wmf-config/InitialiseSettings.php: SWAT: 872f4b0: Change language code for punjabiwikimedia, resyncing, got broken pipe at the end (T230680) (duration: 00m 47s)

Urbanecm subscribed.

Should be done!