http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10718
Revision: 10718 Author: xqt Date: 2012-11-13 21:47:08 +0000 (Tue, 13 Nov 2012) Log Message: ----------- enable i18n methods while using pwb.py and idle
Modified Paths: -------------- branches/rewrite/pywikibot/i18n.py
Modified: branches/rewrite/pywikibot/i18n.py =================================================================== --- branches/rewrite/pywikibot/i18n.py 2012-11-13 21:35:06 UTC (rev 10717) +++ branches/rewrite/pywikibot/i18n.py 2012-11-13 21:47:08 UTC (rev 10718) @@ -271,7 +271,7 @@ import table. """ package = twtitle.split("-")[0] - transdict = getattr(__import__("i18n", fromlist=[package]), package).msg + transdict = getattr(__import__("scripts.i18n", fromlist=[package]), package).msg
code_needed = False # If a site is given instead of a code, use its language