Revision: 8757
Author: purodha
Date: 2010-12-05 13:12:36 +0000 (Sun, 05 Dec 2010)
Log Message:
-----------
some typos in comments removed.
Modified Paths:
--------------
trunk/pywikipedia/interwiki.py
Modified: trunk/pywikipedia/interwiki.py
===================================================================
--- trunk/pywikipedia/interwiki.py 2010-12-04 10:54:12 UTC (rev 8756)
+++ trunk/pywikipedia/interwiki.py 2010-12-05 13:12:36 UTC (rev 8757)
@@ -103,7 +103,7 @@
-lack: used as -lack:xx with xx a language code: only work on pages
without links to language xx. You can also add a number nn
- lick -lack:xx:nn, so that the bot only works on pages with
+ like -lack:xx:nn, so that the bot only works on pages with
at least n interwiki links (the default value for n is 1).
These arguments are useful to provide hints to the bot:
@@ -560,7 +560,7 @@
}
# A list of template names in different languages.
-# Pages which contains these shouldn't be changed.
+# Pages which contain these shouldn't be changed.
ignoreTemplates = {
'_default': [u'delete'],
'ar' : [u'قيد الاستخدام'],
@@ -960,7 +960,7 @@
# download.
self.pending = PageTree()
if globalvar.hintsareright:
- # This is a set of sites that we got hits to
+ # This is a set of sites that we got hints to
self.hintedsites = set()
self.translate(hints, globalvar.hintsareright)
self.confirm = globalvar.confirm
@@ -1336,7 +1336,7 @@
if globalvar.initialredirect:
if globalvar.contentsondisk:
redirectTargetPage = StoredPage(redirectTargetPage)
- #don't follow double redirects; it might be a self loop
+ # don't follow another redirect; it might be a self loop
if not redirectTargetPage.isRedirectPage() \
and not redirectTargetPage.isCategoryRedirect():
self.originPage = redirectTargetPage
@@ -1703,7 +1703,7 @@
# http://is.wikipedia.org/wiki/Wikipediaspjall:V%C3%A9lmenni
# allow edits for the same conditions as -whenneeded
# or the last edit wasn't a bot
- # or the last edit as 1 month ago
+ # or the last edit was 1 month ago
smallWikiAllowed = True
if globalvar.autonomous and page.site().sitename() == 'wikipedia:is':
old={}
Revision: 8756
Author: purodha
Date: 2010-12-04 10:54:12 +0000 (Sat, 04 Dec 2010)
Log Message:
-----------
Allow to set the source families of forwarded interfamily interlanguage links.
Modified Paths:
--------------
trunk/pywikipedia/family.py
Modified: trunk/pywikipedia/family.py
===================================================================
--- trunk/pywikipedia/family.py 2010-12-03 21:20:20 UTC (rev 8755)
+++ trunk/pywikipedia/family.py 2010-12-04 10:54:12 UTC (rev 8756)
@@ -3441,6 +3441,12 @@
# family.
self.interwiki_forward = None
+ # Some families, e. g. wikipedia, receive forwarded interlanguage
+ # links from other families, e. g. incubator, commons, or meta.
+ # These families can set this variable to the names of their source
+ # families.
+ self.interwiki_forwarded_from = {}
+
# Which language codes no longer exist and by which language code
# should they be replaced. If for example the language with code xx:
# now should get code yy:, add {'xx':'yy'} to obsolete. If all
Revision: 8755
Author: purodha
Date: 2010-12-03 21:20:20 +0000 (Fri, 03 Dec 2010)
Log Message:
-----------
Added localized message in de, ksh
Modified Paths:
--------------
trunk/pywikipedia/inline_images.py
Modified: trunk/pywikipedia/inline_images.py
===================================================================
--- trunk/pywikipedia/inline_images.py 2010-12-03 08:32:17 UTC (rev 8754)
+++ trunk/pywikipedia/inline_images.py 2010-12-03 21:20:20 UTC (rev 8755)
@@ -36,9 +36,11 @@
msg = {
'ar': u'هذه الصورة كانت موصولة داخليا من %s. لا معلومات عن المؤلف، حالة حقوق النشر، أو الترخيص متوفرة.',
+ 'de': u'Dieses Bild war inline eingelinkt von %s. Es liegen keine Informationen über den Schöpfer, eventuelle Uheberrechte oder Lizenzen vor.',
'en': u'This image was inline linked from %s. No information on author, copyright status, or license is available.',
'fa': u'این تصویر به طور مستقیم از %s پیوند شده بود. اطلاعاتی در مورد مولف، وضعیت حق تکثیر و اجازهنامه این تصویر موجودنیست.',
'he': u'תמונה זו הייתה מקושרת מהדף %s. אין מידע זמין על המחבר, מצב זכויות היוצרים או הרישיון.',
+ 'ksh': u'Dat Beld wohr onger däm URL %s noh heh jelink. Mer wesse nix drövver, wä et jamaat hät, Urhävverrääschde draan, un onger wat förn Licenze et ze han es.',
'pl': u'Obraz ten został dolinkowany z adresu %s. Brak jest informacji o autorze, prawach autorskich czy licencji.',
'pt': u'Esta imagem foi inserida como linha de %s. Nenhum infomação sobre autor, direitos autorais ou licença foi listada.',
}