Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1371/
Reported by: tgr_
Created on: 2011-10-31 16:55:07
Subject: AddCategory bot uses default language instead of site lang
Assigned to: xqt
Original description:
This might be a more general problem, I did not check. I created a custom generator and used it to construct the AddCategory bot from category.py. Apparently the bot uses the default settings for language purposes instead of either accepting such options in the constructor or \(more conveniently\) checking the site of the first page returned by the generator and using the language of that. For example, running the bot on Commons resulted in edits like this:
http://commons.wikimedia.org/w/index.php?title=File:Ungar-Mayer-palace\_Szeged.jpg&diff=prev&oldid=61856537
\- both the summary and the category namespace name are in Hungarian.
version:
Pywikipedia \[http\] trunk/pywikipedia \(r9710, 2011/10/31, 05:19:34\)
Python 2.7.2+ \(default, Aug 16 2011, 09:23:59\)
\[GCC 4.6.1\]
config-settings:
use\_api = True
use\_api\_login = True
unicode test: ok
Version: core-(2.0)
Severity: minor
See Also:
https://sourceforge.net/p/pywikipediabot/bugs/1371