Bugs item #1783572, was opened at 2007-08-28 22:11
Message generated for change (Comment added) made by persian_gulf
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1783572&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: other
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Persian Gulf (persian_gulf)
Assigned to: Nobody/Anonymous (nobody)
Summary: Necessary translation for redirect in wikipedia_family.py
Initial Comment:
This translation should exist in wikipedia_family.py to make $redirect * double work.
The file with added translation is included.
added translation:
self.redirect{
'fa' : u'تغییرمسیر',
}
This works well after the following bug is solved:
[ pywikipediabot-Bugs-1783561 ] a regex bug on line
----------------------------------------------------------------------
>Comment By: Persian Gulf (persian_gulf)
Date: 2007-09-03 16:22
Message:
Logged In: YES
user_id=1710835
Originator: YES
This works very well for Persian wikipedia(I tested it for about 500 ones
and if you want to make advantage of this for Persian Wiktionary as well,
such this line has to be added to wiktionary_familly.py file
----------------------------------------------------------------------
Comment By: Daniel Herding (wikipedian)
Date: 2007-09-03 03:25
Message:
Logged In: YES
user_id=880694
Originator: NO
Does this really only work for the Farsi Wikipedia, not for the Farsi
Wiktionary etc.?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1783572&group_…
Patches item #1786800, was opened at 2007-09-03 03:02
Message generated for change (Comment added) made by alefzet
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1786800&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Open
Resolution: Accepted
Priority: 5
Private: No
Submitted By: AlefZet (alefzet)
Assigned to: Nobody/Anonymous (nobody)
Summary: Kazakh localization updates
Initial Comment:
Kazakh localization updates, actually for interwiki.py. Others coming soon.
----------------------------------------------------------------------
>Comment By: AlefZet (alefzet)
Date: 2007-09-03 16:37
Message:
Logged In: YES
user_id=1881568
Originator: YES
Yet another updates. For most main bot scripts:
category.py
imagetransfer.py
redirect.py
replace.py
solve_disambiguation.py
table2wiki.py
template.py
upload.py
weblinkchecker.py
File Added: pywikipedia.diff
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1786800&group_…
Revision: 4187
Author: wikipedian
Date: 2007-09-03 11:37:19 +0000 (Mon, 03 Sep 2007)
Log Message:
-----------
Inside image maps, don't touch selflinks, as they're used
to create tooltip labels. See for example:
http://de.wikipedia.org/w/index.php?title=Innenstadt_%28Bautzen%29&diff=nex…
Modified Paths:
--------------
trunk/pywikipedia/selflink.py
Modified: trunk/pywikipedia/selflink.py
===================================================================
--- trunk/pywikipedia/selflink.py 2007-09-03 10:35:56 UTC (rev 4186)
+++ trunk/pywikipedia/selflink.py 2007-09-03 11:37:19 UTC (rev 4187)
@@ -37,16 +37,16 @@
# Summary messages in different languages
# NOTE: Predefined replacement tasks might use their own dictionary, see 'fixes'
-# below.
+# in fixes.py.
msg = {
- 'de':u'Bot: Entferne Selbstlinks',
- 'en':u'Robot: Removing selflinks',
- 'he':u'רובוט: מסיר קישורים של הדף לעצמו',
- 'fr':u'Bot: Enlève autoliens',
- 'nl':u'Bot: links naar pagina zelf verwijderd',
- 'pl':u'Robot automatycznie usuwa linki zwrotne',
- 'pt':u'Bot: Retirando link para o próprio artigo'
- }
+ 'de':u'Bot: Entferne Selbstlinks',
+ 'en':u'Robot: Removing selflinks',
+ 'he':u'רובוט: מסיר קישורים של הדף לעצמו',
+ 'fr':u'Bot: Enlève autoliens',
+ 'nl':u'Bot: links naar pagina zelf verwijderd',
+ 'pl':u'Robot automatycznie usuwa linki zwrotne',
+ 'pt':u'Bot: Retirando link para o próprio artigo'
+}
class XmlDumpSelflinkPageGenerator:
"""
@@ -141,6 +141,12 @@
wikipedia.output(u"\n\n>>> \03{lightpurple}%s\03{default} <<<" % page.title())
try:
oldText = page.get()
+ # Inside image maps, don't touch selflinks, as they're used
+ # to create tooltip labels. See for example:
+ # http://de.wikipedia.org/w/index.php?title=Innenstadt_%28Bautzen%29&diff=nex…
+ if '<imagemap>' in oldText:
+ wikipedia.output(u'Skipping page %s because it contains an image map.' % page.aslink())
+ return
text = oldText
curpos = 0
while curpos < len(text):
Bugs item #1777175, was opened at 2007-08-19 13:35
Message generated for change (Settings changed) made by wikipedian
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1777175&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Falk Steinhauer (falk_steinhauer)
Assigned to: Nobody/Anonymous (nobody)
Summary: Bug in wikipedia.py and corresponding fix
Initial Comment:
I am using snapshot 2007-06-19.
There is a bug in wikipedia.py. Function setSite() is just setting local variables, that are never used again.
Original:
def setSite(site):
default_code = site.language
default_family = site.family
I think it should affect the global variables with the same name (that's what I need in a script that should work on several different wikis and compare their contents).
In addtion default_code is a string, not a function-object. So my fixed version of setSite() looks as follows:
def setSite(site):
global default_code, default_family
default_code = site.language()
default_family = site.family
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1777175&group_…