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).
Description
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Change language code for punjabiwikimedia | operations/mediawiki-config | master | +1 -0 |
Related Objects
- Mentioned Here
- rOMWC872f4b0a66b3: Change language code for punjabiwikimedia
Event Timeline
Change 530769 had a related patch set uploaded (by MarcoAurelio; owner: MarcoAurelio):
[operations/mediawiki-config@master] Change language code for punjabiwikimedia
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
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)