Page MenuHomePhabricator

Add an option to update.php script of LocalisationUpdate for scoping component and extension
Closed, InvalidPublicFeature

Description

As a third-party wiki administrator, I deploy a lot of third-party extensions. But, currently, update.php script of LU always tries to update all translations from the specified repository.

For example,

LocalSettings.php
$wgLocalisationUpdateRepositories = [
	'github' => [
		'mediawiki' => 'https://raw.github.com/wikimedia/mediawiki/master/%PATH%',
		'extension' => 'https://raw.github.com/wikimedia/mediawiki-extensions-%NAME%/master/%PATH%',
		'skin' => 'https://raw.github.com/wikimedia/mediawiki-skins-%NAME%/master/%PATH%'
	],
	'femiwiki' => [
		'extension' => 'https://raw.github.com/femiwiki/%NAME%/main/%PATH%',
		'skin' => 'https://raw.github.com/femiwiki/FemiwikiSkin/main/%PATH%',
	],
];
commands
sudo nice -n 19 php update.php
sudo nice -n 19 php update.php --repoid femiwiki

The first line in the above commands updates all Wikimedia-related translations but fails and skips updates for third-party extensions of 'femiwiki'.
The second line tries to update all components, MediaWiki core, MWF-deployed extensions and skins from that 'femiwiki' organization, fails, skips, and only successfully updates few extensions that belong to 'femiwiki'.

Event Timeline

Lens0021 renamed this task from Add a option to update.php for scoping component and extension to Add a option to update.php script of LU for scoping component and extension.May 29 2021, 6:14 PM
Lens0021 renamed this task from Add a option to update.php script of LU for scoping component and extension to Add an option to update.php script of LU for scoping component and extension.May 29 2021, 6:38 PM

Scoping language could be helpful for monolingual wikis... though this task does not cover it.

Change 697171 had a related patch set uploaded (by Lens0021; author: Lens0021):

[mediawiki/extensions/LocalisationUpdate@master] Add options to the update script of including component lists and excluding component list

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

Aklapper renamed this task from Add an option to update.php script of LU for scoping component and extension to Add an option to update.php script of LocalisationUpdate for scoping component and extension.May 30 2021, 12:17 PM
Lens0021 changed the subtype of this task from "Task" to "Feature Request".Jul 28 2021, 8:35 AM

Change 697171 abandoned by Zabe:

[mediawiki/extensions/LocalisationUpdate@master] Add options to the update script of including component lists and excluding component list

Reason:

See T309694

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

Jdforrester-WMF subscribed.

The LocalisationUpdate extensions has been archived. See T309694 for details.