[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pywikipediabot-users
Subject:    [Pywikipedia-l] patch to norefernces.py
From:       Maksim <max12354 () mail ! ru>
Date:       2010-04-25 6:02:47
Message-ID: E1O5uvX-0002wn-00.max12354-mail-ru () f24 ! mail ! ru
[Download RAW message or body]

Hello!

Please apply attached patch to norefernces.py - localisation for eo: and minor \
bugfix. \| is added to regex for not match pipelined links, for not put the \
"<references /> before the trail images at  \
http://eo.wikipedia.org/w/index.php?title=Lautenbach&diff=prev&oldid=2890600

Maksim


["=?koi8-r?Q?noreferences1=5Fdiff.txt?=" (text/plain)]

51a52
> 'eo':u'Roboto: Aldono de "<references />"',
93a95,101
> 'eo': [
> u'Eksteraj ligiloj',
> u'Ekstera ligilo',
> u'Eksteraj ligoj',
> u'Ekstera ligo',
> u'Rete'
> ],
186a195,197
> 'eo': [
> u'Referencoj',
> ],
273a285
> 'eo': [u'Referencoj'],
358c370
<         elif not self.refR.search(oldTextCleaned):
---
> if not self.refR.search(oldTextCleaned):
421c433
<         interwikiPattern = r'\[\[([a-zA-Z\-]+)\s?:([^\[\]\n]*)\]\]\s*'
---
> interwikiPattern = r'\[\[([a-zA-Z\-]+)\s?:([^\|\[\]\n]*)\]\]\s*'
438c450,453
<         newSection = u'\n%s %s %s\n%s\n' % (ident, wikipedia.translate(self.site, \
                referencesSections)[0], ident, self.referencesText)
---
> gap=u''
> if index > 0 and oldText[index-1] != u'\n':
> gap = u'\n' # to have empty line before
> newSection = u'%s\n%s %s %s\n%s\n' % (gap, ident, wikipedia.translate(self.site, \
> referencesSections)[0], ident, self.referencesText)



_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic