Revision: 5726
Author: russblau
Date: 2008-07-17 13:41:12 +0000 (Thu, 17 Jul 2008)
Log Message:
-----------
replaceCategoryInPlace() should use localized namespace.
Modified Paths:
--------------
trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py 2008-07-17 13:39:55 UTC (rev 5725)
+++ trunk/pywikipedia/wikipedia.py 2008-07-17 13:41:12 UTC (rev 5726)
@@ -3542,8 +3542,8 @@
['nowiki', 'comment', 'math', 'pre', 'source'])
else:
text = replaceExcept(oldtext, categoryR,
- '[[Category:%s\\2'
- % newcat.titleWithoutNamespace(),
+ '[[%s:%s\\2' % (site.namespace(14),
+ newcat.titleWithoutNamespace()),
['nowiki', 'comment', 'math', 'pre', 'source'])
return text