Revision: 4965 Author: filnik Date: 2008-02-03 20:28:34 +0000 (Sun, 03 Feb 2008)
Log Message: ----------- Adding a bugfix for ar.wikipedia
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2008-02-03 19:13:31 UTC (rev 4964) +++ trunk/pywikipedia/wikipedia.py 2008-02-03 20:28:34 UTC (rev 4965) @@ -4705,11 +4705,15 @@
""" try: - redirKeywords = [u'redirect'] + self.family.redirect[self.lang] + if self.site.lang == 'ar': + red = u'تحويل' + else: + red = u'redirect' + redirKeywords = [red] + self.family.redirect[self.lang] redirKeywordsR = r'(?:' + '|'.join(redirKeywords) + ')' except KeyError: # no localized keyword for redirects - redirKeywordsR = r'redirect' + redirKeywordsR = r'%s' % red # A redirect starts with hash (#), followed by a keyword, then # arbitrary stuff, then a wikilink. The wikilink may contain # a label, although this is not useful.
pywikipedia-l@lists.wikimedia.org