[Pywikipedia-l] [ pywikipediabot-Patches-1880140 ] Decode Esperanto titles

SourceForge.net noreply at sourceforge.net
Sat Jan 26 02:48:37 UTC 2008


Patches item #1880140, was opened at 2008-01-25 21:48
Message generated for change (Tracker Item Submitted) made by Item Submitter
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):



----------------------------------------------------------------------

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