Commons:Bots/Requests/Hazard-Bot 14

From Wikimedia Commons, the free media repository
Jump to: navigation, search

Hazard-Bot (talk · contribs) [14]

Operator: Hazard-SJ (talk · contributions · Number of edits · recent activity · block log · User rights log · uploads · Global account information)

Bot's tasks for which permission is being sought: Internationalization

Automatic or manually assisted: Automatic unsupervised

Edit type (e.g. Continuous, daily, one time run): Ranging from continuous to periodic

Maximum edit rate (e.g. edits per minute): N/A

Bot flag requested: (Y/N): No

Programming language(s): Python

Most, if not all of the localization bots we've had, such as SchlurcherBot, have gone inactive. I've gone ahead and coded one, which first checks dumps to determine if a change may be possible, and if it determines one possible, it then checks the live on-wiki page. The current set of changes it makes are (subject to change):

  • Changing namespaces of files in other languages to English
  • Changing the heading title to:
    • {{int:license-header}} if it was either license information, {{int:license}}, or licensing
    • {{original upload log}} if it was either original upload log or file history
    • {{int:filedesc}} if it was summary
  • Change parameters of {{information}}:
    • |source= from own work to {{own}}
    • |permission= from see below to   (yes, blank)

I've done a dry run of it (the code is at GitHub by the way), and it seems good, to me at least. Also, if a trial is necessary, approximately how many should I do for such a task? Thanks.  Hazard SJ  02:45, 7 September 2013 (UTC)


  • I'm a little skeptical about the code. On tools-login, most of the scripts gets terminated automatically when trying to read the dump. --Zhuyifei1999 (talk) 10:48, 7 September 2013 (UTC)
    • You shouldn't really run scripts on tools-login, but rather, submit them as jobs.  Hazard SJ  04:01, 8 September 2013 (UTC)
  • Please make a test run. --EugeneZelenko (talk) 14:23, 7 September 2013 (UTC)
    • Here's the trial, I intentionally regulated some parts (by disabling parts of the code) in order to allow other kinds of examples.  Hazard SJ  04:01, 8 September 2013 (UTC)
      Looks OK for me. Probably will be good idea to refer to internationalization fixes description page instead of generic Commons:Bots in edit summaries. --EugeneZelenko (talk) 14:09, 8 September 2013 (UTC)
      Yes, sounds good.  Hazard SJ  23:32, 9 September 2013 (UTC)
      On File:Beech MQM-107A Streaker at WSMRM.jpg it missed the Summary -> int:filedesc change. File:Gap vu de ceuse (FR-05000).jpg has a License header instead of Licensing, you may want to add this as well for conversion. File:K2-big.jpg has a Description header instead of Summary, should be another one to change to filedesc. File:Kalottenmodell Isooctan.png has a non-internationalized original upload log header. --Denniss (talk) 00:10, 10 September 2013 (UTC)
      As I said, I disabled different parts of the code during the trial to allow a greater variety of edits, otherwise everything might have been changing int:license to int:licenseheader.  Hazard SJ  17:16, 10 September 2013 (UTC)

Could you also add some sorting function to your bot like placing active category entries and interwikis at the bottom of an image page (active = not used in format like [[:category:xxx]] ? --Denniss (talk) 15:13, 11 September 2013 (UTC)

Do we really need interwikis in image description? Isn't mw:Extension:GlobalUsage solved this problom long time ago? --EugeneZelenko (talk) 13:46, 12 September 2013 (UTC)
Yes, I should be able to let it pick out all the categories and place/ensure they are placed at the bottom of the page. As for interwikis, that should be possible as well. However, based o the above comment, should I still also attempt implementation for them?  Hazard SJ  02:31, 13 September 2013 (UTC)
Could somebody please approve this task? There's a lot of work to be done especially with the only intermittent/rare runs of Schlurcherbot. --Denniss (talk) 11:45, 7 October 2013 (UTC)

If there are no further objections, I propose we approve this. --99of9 (talk) 13:13, 11 October 2013 (UTC)