lahwaacz / wiki-scripts

Framework for writing bots, maintenance scripts or performing data analysis on wikis powered by MediaWiki
http://lahwaacz.github.io/wiki-scripts/
GNU General Public License v3.0
27 stars 12 forks source link

localize-templates.py: added script for template localisation #77

Closed madonuko closed 3 years ago

madonuko commented 3 years ago

I'd need someone to throughoutly edit localize-templates.py so that it can fit into other scipts...?

And by the way, the script basically replaces uses of English templates in localised pages with the localised templates.

madonuko commented 3 years ago

Long time no see! I've made some changes to the script. It's working fine overall. Feel free to ask for more improvements. For me, this script is perfect and I'd put this in automation.

lahwaacz commented 3 years ago

I've looked at this again and merged it into master, though I've squashed your changes into a single commit, so GitHub can't recognize this pull request has been accepted, but it is there: https://github.com/lahwaacz/wiki-scripts/commit/0aa0026bd6be72aebca8a18db05b0fb34d0636af. I've also made some changes which you might be interested to look at, the page contents are fetched differently now and I think it is much faster now. The script is still localize-templates.py, I'll start running the bot now...

Thanks for working on this! :vulcan_salute: