http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9218
Revision: 9218
Author: siebrand
Date: 2011-05-07 20:48:48 +0000 (Sat, 07 May 2011)
Log Message:
-----------
Improve 'category-adding' and update documentation.
Modified Paths:
--------------
branches/rewrite/scripts/i18n/category.py
Modified: branches/rewrite/scripts/i18n/category.py
===================================================================
--- branches/rewrite/scripts/i18n/category.py 2011-05-07 17:23:24 UTC (rev 9217)
+++ branches/rewrite/scripts/i18n/category.py 2011-05-07 20:48:48 UTC (rev 9218)
@@ -262,7 +262,7 @@
'category-adding': u'Robot: A Śònt [[Category:%(newcat)s]]',
},
'en': {
- 'category-adding': u'Robot: Adding [[Category:%(newcat)s]]',
+ 'category-adding': u'Robot: Adding category [[:Category:%(newcat)s|%(newcat)s]]',
'category-also-in': u'(also in %(alsocat)s)',
'category-changing': u'Robot: Changing %(oldcat)s',
'category-listifying': u'Bot: Listifying from %(fromcat)s (%(num)d entries)',
@@ -884,7 +884,8 @@
# Author: Valhallasw
# Author: Xqt
'qqq': {
- 'category-also-in': u'Translations to say that the current category is in more categories than the one we\'re coming from',
+ 'category-adding': u'Do not change ":Category:%(newcat)s" so this message will work in any language.',
+ 'category-also-in': u'Translations to say that the current category is in more categories than the one we are coming from',
'category-changing': u'Edit summary when the bot move pages from one category to another. <code>%(oldcat)s</code> is the source category, <code>%(newcat)s</code> the target.',
},
# Author: Xqt
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9214
Revision: 9214
Author: xqt
Date: 2011-05-04 20:40:36 +0000 (Wed, 04 May 2011)
Log Message:
-----------
'int' is not a int type; follow-up for r9208, r9209, bugfix for bug #3295288 and bug #3297387
Modified Paths:
--------------
trunk/pywikipedia/query.py
Modified: trunk/pywikipedia/query.py
===================================================================
--- trunk/pywikipedia/query.py 2011-05-04 04:40:11 UTC (rev 9213)
+++ trunk/pywikipedia/query.py 2011-05-04 20:40:36 UTC (rev 9214)
@@ -255,7 +255,9 @@
return item
def ListToParam( list ):
- """Convert a list of unicode strings into a UTF8 string separated by the '|' symbols
+ """Convert a list of unicode strings into a UTF8 string separated by the '|'
+ symbols
+
"""
list = ConvToList( list )
if len(list) == 0:
@@ -268,7 +270,7 @@
if u'|' in item:
raise wikipedia.Error(u"item '%s' contains '|' symbol" % item)
encList += ToUtf8(item) + u'|'
- elif type(item) == 'int':
+ elif type(item) == int:
encList += ToUtf8(item) + u'|'
elif isinstance(item, wikipedia.Page):
encList += ToUtf8(item.title()) + u'|'