[go: up one dir, main page]

Localisation updates from https://translatewiki.net.

Change-Id: Ic7e54960ed56f43e5d771e01b783ac32aeab63b5
1 file changed
tree: d5a35f971b9e280187f7490d5b15be55ae7031d3
  1. db/
  2. docs/
  3. i18n/
  4. includes/
  5. languages/
  6. maintenance/
  7. resources/
  8. src/
  9. tests/
  10. .eslintrc.json
  11. .gitignore
  12. .gitreview
  13. .phpcs.xml
  14. composer.json
  15. extension.json
  16. Gruntfile.js
  17. package-lock.json
  18. package.json
  19. README.md
README.md

GENERAL SETUP OF TARGETS

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