https://bugzilla.wikimedia.org/show_bug.cgi?id=55229
Web browser: --- Bug ID: 55229 Summary: AddCategory bot uses default language instead of site lang Product: Pywikibot Version: unspecified Hardware: All OS: All Status: ASSIGNED Severity: normal Priority: Unprioritized Component: category.py Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
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%5C_Sz... - 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