[Pywikipedia-l] [ pywikipediabot-Patches-1880140 ] Decode Esperanto titles
SourceForge.net
noreply at sourceforge.net
Sat Jan 26 14:50:41 UTC 2008
Patches item #1880140, was opened at 2008-01-26 02:48
Message generated for change (Comment added) made by malafaya
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1880140&group_id=93107
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: None
Priority: 5
Private: No
Submitted By: AndreasJS (andreasjs)
Assigned to: Nobody/Anonymous (nobody)
Summary: Decode Esperanto titles
Initial Comment:
Titles have to be decoded from x convention for liks to work properly.
Here is the patch:
Index: wikipedia.py
===================================================================
--- wikipedia.py (revision 4939)
+++ wikipedia.py (working copy)
@@ -454,6 +454,8 @@
pass
if underscore:
title = title.replace(' ', '_')
+ if self.site().lang == 'eo':
+ title = decodeEsperantoX(title)
return title
def titleWithoutNamespace(self, underscore=False):
----------------------------------------------------------------------
>Comment By: André Malafaya Baptista (malafaya)
Date: 2008-01-26 14:50
Message:
Logged In: YES
user_id=1037345
Originator: NO
This seems to be working fine using "redirect.py -lang:eo double".
----------------------------------------------------------------------
Comment By: AndreasJS (andreasjs)
Date: 2008-01-26 14:37
Message:
Logged In: YES
user_id=1738850
Originator: YES
File Added: wikipedia.diff
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1880140&group_id=93107
More information about the Pywikipedia-l
mailing list