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

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

Change 697108 had a related patch set uploaded (by Luca Mauri; author: Luca Mauri):

[mediawiki/core@master] Modify "SiteExporter.php" and "SiteImporter.php" to handle "LanguageCode" property as well

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

Change 592489 abandoned by Luca Mauri:

[mediawiki/core@master] Modify "SiteExporter.php" and "SiteImporter.php" to handle "LanguageCode" property as well

Reason:

Replaced by https://gerrit.wikimedia.org/r/c/mediawiki/core/ /697108

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

Change 915723 had a related patch set uploaded (by Luca Mauri; author: Luca Mauri):

[mediawiki/core@master] Modify "SiteExporter.php" and "SiteImporter.php" to handle "LanguageCode" property as well

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

Change 697108 abandoned by Luca Mauri:

[mediawiki/core@master] Modify "SiteExporter.php" and "SiteImporter.php" to handle "LanguageCode" property as well

Reason:

Replaced by https://gerrit.wikimedia.org/r/c/mediawiki/core/+/915723

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

@lucamauri: Removing task assignee as this open task has been assigned for more than two years - see the email sent to all task assignees on 2024-04-15.
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!

@Aklapper actually my work on the task was done, I was simply waiting for someone to accept my patch.
Nevertheless, I have rebased the patch and submitted again, hoping for someone to review an accept it.