commit | 1be554f697b33d9654a83c5a46a4e874b0f6563a | [log] [tgz] |
---|---|---|
author | Translation updater bot <l10n-bot@translatewiki.net> | Mon Sep 02 09:20:30 2024 +0200 |
committer | Translation updater bot <l10n-bot@translatewiki.net> | Mon Sep 02 09:20:30 2024 +0200 |
tree | d5a35f971b9e280187f7490d5b15be55ae7031d3 | |
parent | d6028ea75387c8c9a6e26e30e383b0178f0af0ae [diff] |
Localisation updates from https://translatewiki.net. Change-Id: Ic7e54960ed56f43e5d771e01b783ac32aeab63b5
In order to set up this extension we need to wikis - one to push from and one to push to.
This extension needs to be installed on pushing wiki, and configured like so:
$wgContentTransferTargets = [ 'privatewikiname' => [ "url" => "http://target/api.php", // URL to the target wiki's API endpoint "password" => "dvauaeersp02ds6s8n88bbrsj3asuuk", // Bot password "draftNamespace" => "Draft", // Name for the NS to be used as draft ("Draft" is automatically created by "MergeArticles" ext) "pushToDraft" => true // Whether to push to draft. If false will push directly to target pages ] ];
If multiple users need to be defined per target, use this configuration
$wgContentTransferTargets = [ 'privatewikiname' => [ "url" => "http://target/api.php", // URL to the target wiki's API endpoint "users" => [ [ "user" => "Uname1@bot", // Bot username "password" => "dvauaeersp02ds6s8n88bbrsj3asuuk", // Bot password ], [ "user" => "Uname2@bot", // Bot username "password" => "dvauaeersp02ds6s8n88bbrsj3asuuk", // Bot password ] ], "draftNamespace" => "Draft", // Name for the NS to be used as draft ("Draft" is automatically created by "MergeArticles" ext) "pushToDraft" => true // Whether to push to draft. If false will push directly to target pages ] ];
These will then be displayed in the UI, and it can be chosen which user to use for transfer
If wiki is non-BS (non-role system):
$wgGroupPermissions['*']['content-transfer'] = false; $wgGroupPermissions['sysop']['content-transfer'] = true;
If certificate of target is not valid, you can set curl --insecure option, and thus ignore it by:
$wgContentTransferIgnoreInsecureSSL = true;
WHEN SPECIFYING TARGET URL, IT MUST NOT BE LOCALHOST, BUT AN ACTUAL DOMAIN!!!
On receiving wiki, create a Bot account, and enter the user/pass to the configuration on pushing wiki. Also, if planning on using Merge funcitonality, MergeArticles extension needs to be installed on receiving wiki