http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11315
Revision: 11315 Author: xqt Date: 2013-04-01 12:24:19 +0000 (Mon, 01 Apr 2013) Log Message: ----------- use PLURAL support from translate() method
Modified Paths: -------------- trunk/pywikipedia/checkimages.py
Modified: trunk/pywikipedia/checkimages.py =================================================================== --- trunk/pywikipedia/checkimages.py 2013-04-01 10:53:12 UTC (rev 11314) +++ trunk/pywikipedia/checkimages.py 2013-04-01 12:24:19 UTC (rev 11315) @@ -1468,11 +1468,11 @@ skip_number = limit # Print a starting message only if no images has been skipped if not self.skip_list: - if skip_number == 1: - pywikibot.output(u'Skipping the first file:\n') - else: - pywikibot.output(u'Skipping the first %s files:\n' - % skip_number) + pywikibot.output( + pywikibot.translate( + 'en', + u'Skipping the first {{PLURAL:num|file|%(num)s files}}:\n', + {'num': skip_number}) # If we still have pages to skip: if len(self.skip_list) < skip_number: pywikibot.output(u'Skipping %s...' % self.imageName)
pywikipedia-svn@lists.wikimedia.org