Bugs item #2235697, was opened at 2008-11-07 18:21
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2235697&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: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: family.py, localised REDIRECT version for hr
Initial Comment:
Please add localised redirect instruction for hr to 'redirect' section in family.py
'hr': [u'REDIRECT', u'PREUSMJERI'],
Thanks.
Pywikipedia [http] trunk/pywikipedia (r6073, Nov 06 2008, 20:53:12)
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2235697&group_…
Revision: 6075
Author: btongminh
Date: 2008-11-07 15:52:38 +0000 (Fri, 07 Nov 2008)
Log Message:
-----------
Remove trailing spaces if the image is the first item on the line.
Modified Paths:
--------------
trunk/pywikipedia/commonsdelinker/delinker.py
Modified: trunk/pywikipedia/commonsdelinker/delinker.py
===================================================================
--- trunk/pywikipedia/commonsdelinker/delinker.py 2008-11-06 21:29:30 UTC (rev 6074)
+++ trunk/pywikipedia/commonsdelinker/delinker.py 2008-11-07 15:52:38 UTC (rev 6075)
@@ -247,6 +247,19 @@
# Found the end of the image
break
+ # Check whether this image is the first one on the line
+ if image_start == 0:
+ prev = ''
+ else:
+ prev = new_text[image_start - 1]
+ if prev in ('', '\r', '\n') and replacement is None:
+ # Kill all spaces after end
+ while (end + 1) < len(new_text):
+ if new_text[end + 1] in (' ', '\t'):
+ end += 1
+ else:
+ break
+
# Add the replacement to the todo list. Doing the
# replacement right know would alter the indices.
replacements.append((new_text[image_start:end],
Update for anarchopedia-family.py
* New projects :
'ko': 'kor.anarchopedia.org',
'sq': 'sqi.anarchopedia.org',
'hy': 'hye.anarchopedia.org',
'tr': 'tur.anarchopedia.org',
* Stopped projects
'nno': 'nn.anarchopedia.org',
'nob': 'nb.anarchopedia.org',
New
self.namespaces[4] = {
'ko': u'아나코백과',
'fa': u'آنارکوپدیا',
'sr': u'Anarhopedija-Анархопедија',
'he': u'אנרכופדיה',
'eo': u'Anarĥopedio',
'ru': u'Анархопедия',
'hy': u'Անարխոպեդիա',
'fi': u'Anarkopedia',
'it': u'Anarcopedia',
'lv': u'Anarhopēdija',
'pt': u'Anarcopédia ',
'tr': u'Anarşipedi ',
*Change of 3 letters codes"
zho in place of chi
deu in place of ger
We run all our projects now in Mediawiki 1.14a
We have this message when running the bot : WARNING: Could not open
'http://fra.anarchopedia.org/api.php?action=query&meta=userinfo&uiprop=block…'.
Maybe the server or your connection is down. Retrying in 1 minutes...
We use both 2 and 3 letters code, but only 2 letters code for
interwiki links ([[en:]]).
*Thanks a lot
Esperanza