Bugs item #3431273, was opened at 2011-10-31 17:55 Message generated for change (Tracker Item Submitted) made by tgr_ You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3431273...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: category Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Tgr (tgr_) Assigned to: Nobody/Anonymous (nobody) Summary: AddCategory bot uses default language instead of site lang
Initial Comment: 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_Szege... - 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
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3431273...
pywikipedia-bugs@lists.wikimedia.org