Page MenuHomePhabricator

Modify "SiteImporter.php" and "SiteExporter.php" to handle "LanguageCode" as well
Open, Needs TriagePublic

Description

The script importSites.php is used to import a list of XML formatted sites list as explained here https://www.mediawiki.org/wiki/Manual:Sites_table#Managing_the_sites_table
For some reason this script ignores the LanguageCode parameter that should instead fill the site_language in the table.
To your knowledge is there a specific reason for this function being excluded from the code?
If no such reason exist, I would propose to add this functionality.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 16 2019, 9:43 PM

The modification only takes few lines of code in a couple of files. I tested this on my local MediaWiki test installation and, if there is no specific reason not to have this function, I would commit it myself.

Change 507821 had a related patch set uploaded (by Luca Mauri; owner: Luca Mauri):
[mediawiki/core@master] Modify "importSites.php" to import "LanguageCode" as well

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

lucamauri renamed this task from Modify "importSites.php" to import "LanguageCode" as well to Modify "SiteImporter.php" and "SiteExporter.php" to handle "LanguageCode" as well.May 4 2019, 6:46 PM

Change 592489 had a related patch set uploaded (by Luca Mauri; owner: Luca Mauri):
[mediawiki/core@master] Modify "SiteExporter.php" and "SiteImporter.php" to handle "LanguageCode" property as well

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

Change 507821 abandoned by Luca Mauri:
Modify "SiteExporter.php" and "SiteImporter.php" to handle "LanguageCode" property as well

Reason:
Replaced by https://gerrit.wikimedia.org/r/#/c/mediawiki/core/ /592489/

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