http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10009
Revision: 10009
Author: xqt
Date: 2012-03-11 12:13:26 +0000 (Sun, 11 Mar 2012)
Log Message:
-----------
Fix for gramatical error on the wikipedia.GetAll() text (bug #3501204)
Modified Paths:
--------------
trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py 2012-03-11 11:55:44 UTC (rev 10008)
+++ trunk/pywikipedia/wikipedia.py 2012-03-11 12:13:26 UTC (rev 10009)
@@ -4449,8 +4449,9 @@
"""
# TODO: why isn't this a Site method?
pages = list(pages) # if pages is an iterator, we need to make it a list
- output(u'Getting %d pages %sfrom %s...'
- % (len(pages), (u'', u'via API ')[site.has_api() and debug], site))
+ output(u'Getting %d page%s %sfrom %s...'
+ % (len(pages), (u'', u's')[len(pages) != 1],
+ (u'', u'via API ')[site.has_api() and debug], site))
limit = config.special_page_limit / 4 # default is 500/4, but It might have good point for server.
if len(pages) > limit:
# separate export pages for bulk-retrieve