Bugs item #2003088, was opened at 2008-06-26 13:26
Message generated for change (Comment added) made by nicdumz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2003088&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: 7
Private: No
Submitted By: Melancholie (melancholie)
Assigned to: Nobody/Anonymous (nobody)
Summary: Serious mistake in sk translation in featured.py
Initial Comment:
There has been added "je najlep lnok", but "je najlepší článok" had been requested! The characters š, í, č and á are missing!
See:
http://sourceforge.net/tracker/index.php?func=detail&aid=1999637&group_id=9…http://svn.wikimedia.org/viewvc/pywikipedia/trunk/pywikipedia/featured.py?r…
----------------------------------------------------------------------
>Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2008-06-26 18:39
Message:
Logged In: YES
user_id=1963242
Originator: NO
I'm sorry melancholie. I copy pasted the translation, but I think I have
copied it from the bug tracker mail; and sadly, the mails from the
sourceforge trackers apparently breaks the encoding :
"The characters š, í, č and á are missing!", for example, is rendered
"The characters , , and are missing!"
Sorry again, I had no way to figure out it was a wrong translation :)
[Fixed in r5637]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2003088&group_…
Revision: 5636
Author: filnik
Date: 2008-06-26 16:00:09 +0000 (Thu, 26 Jun 2008)
Log Message:
-----------
Adding the docu to getDuplicates
Modified Paths:
--------------
trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py 2008-06-26 14:53:46 UTC (rev 5635)
+++ trunk/pywikipedia/wikipedia.py 2008-06-26 16:00:09 UTC (rev 5636)
@@ -2638,12 +2638,14 @@
raise NoPage(u'API Error, nothing found in the APIs')
def getDuplicates(self):
+ """ Function that uses APIs to give the duplicates of the given image """
params = {
'action' :'query',
'titles' :self.title(),
'prop' :'imageinfo',
'iiprop' :'sha1',
}
+ # First of all we need the Hash that identify an image
data = query.GetData(params, useAPI = True, encodeTitle = False)
pageid = data['query']['pages'].keys()[0]
try:
@@ -2654,6 +2656,7 @@
else:
wikipedia.output(u'Image deleted before getting the Hash. Skipping...')
return None
+ # Now get all the images with the same hash
#action=query&format=xml&list=allimages&aisha1=%s
image_namespace = "%s:" % self._site.image_namespace() # Image:
params = {