https://bugzilla.wikimedia.org/show_bug.cgi?id=54560
Web browser: --- Bug ID: 54560 Summary: archivebot.py edit summary i18n improvement Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/patches/561/ Reported by: acstroe Created on: 2012-08-16 07:18:55 Subject: archivebot.py edit summary i18n improvement Original description: The edit summary of archivebot explains how old archived messages are, by using the configuration string, e.g. 45d or 24h. On request from some users on ro.wp, I have added a function that interprets these strings in accordance with the local wiki settings. It uses the MediaWiki:Hours and MediaWiki:Days messages to obtain the local language string. Since all wikis I tries use the PLURAL parser function and parser functions are not interpreted in the wiki edit summary, I parsed the PLURAL function to obtain the actual string. If the PLURAL function is not supported, then the exact text of the MediaWiki:Hours and MediaWiki:Days is used (after replacing $1 with the actual number). If the MediaWiki:Hours or MediaWiki:Days messages are not found, then the initial configuration string is used.
See also https://ro.wikipedia.org/wiki/Wikipedia:Sarcini%5C_pentru%5C_robo%C8%9Bi%5C#...