Revision: 5536
Author: nicdumz
Date: 2008-06-08 21:15:48 +0000 (Sun, 08 Jun 2008)
Log Message:
-----------
patch #1985288 [Substantial (language) update of featured.py]
Very nice patch by melancholie
Modified Paths:
--------------
trunk/pywikipedia/featured.py
Modified: trunk/pywikipedia/featured.py
===================================================================
--- trunk/pywikipedia/featured.py 2008-06-08 20:18:27 UTC (rev 5535)
+++ trunk/pywikipedia/featured.py 2008-06-08 21:15:48 UTC (rev 5536)
@@ -5,7 +5,7 @@
* -interactive : ask before changing page
-* -nocache : doesn't include /featured/cache file to remembers if the
+* -nocache : doesn't include /cache/featured file to remembers if the
article already was verified.
* -fromlang:xx[,yy[,...]]] : xx,.. are the languages to be verified. Another
@@ -52,13 +52,16 @@
return links
msg = {
- 'ar': u'بوت: وصلة مقالة مختارة ل[[%s:%s]]',
- 'bat-smg': u'Robots: Pavīzdėnė straipsnė nūruoda [[%s:%s]]',
+ 'als': u'Bötli: [[%s:%s]] isch en bsunders glungener Artikel',
+ 'ar': u'بوت: وصلة مقالة مختارة ل [[%s:%s]]',
+ 'bat-smg': u'robots: Pavīzdėnė straipsnė nūruoda [[%s:%s]]',
'bs': u'Bot: Interwiki za izabrane članke za [[%s:%s]]',
- 'en': u'Bot: Featured article link for [[%s:%s]]',
+ 'cs': u'Bot: Nejlepší článek: [[%s:%s]]',
+ 'de': u'Bot: [[%s:%s]] ist ein ausgezeichneter Artikel',
+ 'en': u'Bot: [[%s:%s]] is a featured article',
+ 'eo': u'roboto: [[%s:%s]] estas artikolo elstara',
'es': u'Bot: Enlace a artículo destacado para: [[%s:%s]]',
- 'de': u'Bot: [[%s:%s]] ist ein ausgezeichneter Artikel',
- 'cs': u'Bot: Nejlepší článek: [[%s:%s]]',
+ 'fa': u' ربات: [[%s:%s]] یک مقاله برگزیدهاست',
'fi': u'Bot: Suositeltu artikkeli -tähti: [[%s:%s]]',
'fr': u'Bot: Lien AdQ pour [[%s:%s]]',
'he': u'בוט: קישור לערך מומלץ עבור [[%s:%s]]',
@@ -66,126 +69,328 @@
'it': u'Bot: collegamento articolo in vetrina [[%s:%s]]',
'ja': u'ロボットによる: 秀逸な項目へのリンク [[%s:%s]]',
'ka': u'ბოტი: რჩეული სტატიის ბმული გვერდისათვის [[%s:%s]]',
- 'ko': u'로봇:알찬 글 [[%s:%s]] 를 가리키는 링크',
+ 'ko': u'로봇: 알찬 글 [[%s:%s]] 를 가리키는 링크',#로봇이:?
'ksh': u'bot: [[%s:%s]] ess_enen ußjezëijshneten Atikkel',
- 'lb': u'Bot:Exzellenten Arikel Link op [[%s:%s]]',
+ 'lb': u'Bot: Exzellenten Arikel Link op [[%s:%s]]',
'lt': u'Bot: Pavyzdinis straipsnis [[%s:%s]]',
'nl': u'Bot: Etalage-artikel link voor [[%s:%s]]',
'no': u'bot: [[%s:%s]] er en utmerka artikkel',
'nn': u'bot: [[%s:%s]] er ein god artikkel',
+ 'mk': u'Бот: Интервики за избрани статии за [[%s:%s]]',
'pl': u'Bot: Link do artykułu wyróżnionego [[%s:%s]]',
'pt': u'Bot: Ligando artigos destacados para [[%s:%s]]',
'ru': u'Робот: робот: избранная статья [[%s:%s]]',
'sr': u'Bot: Међувики за изабране чланке за [[%s:%s]]',
'sv': u'Bot: [[%s:%s]] är en utmärkt artikel',
'th': u'บอต: ลิงก์บทความคัดสรร [[%s:%s]]',
+ 'tr': u'Bot değişikliği: [[%s:%s]] madde bağlantısı eklendi',
'vo': u'Bot: Yüm yegeda gudik tefü [[%s:%s]]',
'zh': u'機器人: 連結特色條目 [[%s:%s]]',
}
template = {
'af': ['Link FA'],
+ 'als': ['LinkFA', 'Link FA'],
+ 'am': ['Link FA'],
+ 'an': ['Destacato', 'Destacau', 'Link FA'],
+ 'ang': ['Link FA'],
'ar': [u'وصلة مقالة مختارة', 'Link FA'],
+ 'ast': ['Enllaz AD', 'Link FA'],
+ 'ay': ['Link FA'],
+ 'az': ['Link FM', 'Link FA'],
+ 'bar': ['Link FA'],
+ 'bat-smg': ['Link FA'],
+ 'be': ['Link FA'],
+ 'be-x-old': ['Link FA'],
'bg': ['Link FA'],
- 'br': ['Liamm PuB'],
+ 'bn': ['Link FA'],
+ 'bo': ['Link FA'],
+ 'bpy': ['Link FA'],
+ 'br': ['Liamm PuB', 'Link FA', 'Lien AdQ'],
'bs': ['Link FA'],
- 'ca': [u'Enllaç AD'],
+ 'ca': [u'Enllaç AD', 'Destacat', 'Link FA'],
+ 'cdo': ['Link FA'],
+ 'ceb': ['Link FA'],
+ 'co': ['Link FA'],
+ 'crh': ['Link FA'],
+ 'cs': ['Link FA'],
+ 'cu': ['Link FA'],
+ 'cv': ['Link FA'],
+ 'cy': ['Cyswllt erthygl ddethol', 'Dolen ED', 'Link FA'],
'da': ['Link FA'],
'de': ['Link FA'],
+ 'dsb': ['Link FA'],
+ 'dv': ['Link FA'],
+ 'el': ['Link FA'],
'en': ['Link FA'],
- 'eo': ['LigoElstara'],
- 'es': ['destacado'],
+ 'eo': ['LigoElstara', 'Link FA'],
+ 'es': ['Destacado', 'Link FA'],
+ 'et': ['Link FA'],
'eu': ['NA lotura', 'Link FA'],
+ 'fa': ['Link FA'],
+ 'fi': ['Link FA'],
+ 'fo': ['Link FA'],
'fr': ['Lien AdQ', 'Link FA'],
+ 'frp': ['Link FA'],
+ 'ga': ['Nasc AR', 'Link FA'],
+ 'gan': ['Link FA'],
+ 'gd': ['Link FA'],
+ 'gl': ['Link FA'],
+ 'gn': ['Link FA'],
+ 'gu': ['Link FA'],
+ 'hak': ['Link FA'],
'he': ['Link FA'],
+ 'hi': ['Link FA', 'Lien AdQ'],
'hr': ['Link FA'],
+ 'hsb': ['Link FA'],
+ 'hu': ['Link FA'],
+ 'hy': ['Link FA'],
'ia': ['Link FA'],
+ 'id': ['Link FA'],
+ 'ilo': ['Link FA'],
'io': ['Link FA'],
- 'it': ['Link AdQ'],
+ 'is': [u'Tengill ÚG', 'Link FA'],
+ 'it': ['Link AdQ', 'Link FA'],
'ja': ['Link FA'],
+ 'jbo': ['Link FA'],
+ 'jv': ['Link FA'],
'ka': ['Link FA'],
+ 'kaa': ['Link FA'],
+ 'kab': ['Link FA'],
+ 'kk': ['Link FA'],
+ 'kl': ['Link FA'],
+ 'km': ['Link FA'],
+ 'kn': ['Link FA'],
'ko': ['Link FA'],
'ksh': ['Link FA'],
+ 'ku': ['Link FA'],
+ 'kw': ['Link FA'],
+ 'la': ['Link FA'],
+ 'lad': ['Link FA'],
+ 'lb': ['Link FA'],
+ 'li': ['Link FA'],
+ 'lo': ['Link FA'],
'lt': ['Link FA'],
'lv': ['Link FA'],
+ 'mi': ['Link FA'],
+ 'mk': ['Link FA'],
+ 'ml': ['Link FA'],
+ 'mn': ['Link FA'],
+ 'mr': ['Link FA'],
+ 'ms': ['Link FA'],
+ 'mt': ['Link FA'],
+ 'nah': ['Link FA'],
+ 'new': ['Link FA'],
'nl': ['Link FA'],
- 'no': ['Link UA'],
'nn': ['Link FA'],
+ 'no': ['Link UA', 'Link FA'],
+ 'oc': ['Ligam AdQ', 'Lien AdQ', 'Link FA'],
+ 'os': ['Link FA'],
+ 'pam': ['Link FA'],
+ 'pap': ['Link FA'],
+ 'pih': ['Link FA'],
'pl': ['Link FA'],
+ 'ps': ['Link FA'],
'pt': ['Link FA'],
+ 'qu': ['Link FA'],
+ 'rmy': ['Link FA'],
+ 'ro': [u'Legătură AF', 'Link FA'],
'ru': ['Link FA'],
+ 'scn': ['Link FA'],
+ 'sco': ['Link FA'],
+ 'sd': ['Link FA'],
+ 'se': ['Link FA'],
+ 'sh': ['Link FA'],
+ 'si': ['Link FA'],
+ 'simple': ['Link FA'],
+ 'sk': ['Link FA'],
'sl': ['Link FA'],
+ 'sq': ['Link FA'],
'sr': ['Link FA'],
- 'sv': ['UA'],
+ 'su': ['Link FA'],
+ 'sv': ['UA', 'Link UA', 'Link FA'],
+ 'sw': ['Link FA'],
+ 'szl': ['Link FA'],
+ 'ta': ['Link FA'],
+ 'te': ['Link FA'],
+ 'tg': ['Link FA'],
'th': ['Link FA'],
- 'tr': ['Link FA'],
- 'vi': [u'Liên kết chọn lọc'],
- 'vo': [u'Yüm YG'],
+ 'tl': ['Link FA'],
+ 'tpi': ['Link FA'],
+ 'tr': ['Link SM', 'Link FA'],
+ 'ug': ['Link FA'],
+ 'uk': ['Link FA'],
+ 'ur': ['Link FA'],
+ 'uz': ['Link FA'],
+ 'vec': ['Link FA'],
+ 'vi': [u'Liên kết chọn lọc', 'Link FA'],
+ 'vo': [u'Yüm YG', 'Link FA'],
+ 'wa': ['Link FA'],
+ 'war': ['Link FA'],
+ 'wuu': ['Link FA'],
+ 'yi': ['Link FA', u'רא'],
+ 'yo': ['Link FA'],
'zh': ['Link FA'],
'zh-classical': ['Link FA'],
+ 'zh-min-nan': ['Link FA'],
'zh-yue': ['Link FA'],
- 'zh-min-nan': ['Link FA'],
+ 'zu': ['Link FA'],
}
featured_name = {
- 'af': (BACK, u"Sjabloon:Voorbladartikel"),
- 'am': (CAT, u"Category:Wikipedia:Featured_article"),
- 'ast': (BACK, u"Plantilla:Destacaos"),
+ 'af': (BACK, u"Sjabloon:Voorbladster"),
+ 'als': (CAT, u"Kategorie:Wikipedia:Bsunders glungener Artikel"),
+ 'am': (CAT, u"Category:Wikipedia:Featured article"),
+ 'an': (CAT, u"Categoría:Articlos destacatos"),
'ar': (CAT, u"تصنيف:مقالات مختارة"),
- # az: Vikipediya:Fəal məzmun
- #'be': (BACK, u"Шаблён:Выбраны артыкул"),
- 'bg': (BACK, u"Шаблон:Избрана статия"),
- 'bn': (BACK, u"Template:নির্বাচিত নিবন্ধ"),
- 'bs': (BACK, u"Šablon:Wiki članak"),
- 'ca': (BACK, u"Plantilla:Article de qualitat"),
- 'cs': (BACK, u"Šablona:Nejlepší článek"),
- 'de': (BACK, u"Vorlage:Exzellent"),
- 'el': (BACK, u"Πρότυπο:ΕπιλεγμένοΆρθρο"),
- 'eo': (BACK, u"Ŝablono:Elstara"),
- 'en': (CAT, u"Category:Wikipedia featured articles"),
+ 'ast': (CAT, u"Categoría:Uiquipedia:Artículos destacaos"),
+ 'bar': (CAT, u"Kategorie:Berig"),
+ 'bat-smg': (CAT, u"Kategorija:Vikipedėjės pavīzdėnē straipsnē"),
+ 'be-x-old': (CAT, u"Катэгорыя:Вікіпэдыя:Выбраныя артыкулы"),
+ 'bg': (CAT, u"Категория:Избрани статии"),
+ 'bn': (BACK, u"Template:নির্বাচিত নিবন্ধ"),
+ 'bs': (CAT, u"Kategorija:Odabrani članci"),
+ 'ca': (CAT, u"Categoria:Viquipèdia:Articles de qualitat"),
+ 'cs': (CAT, u"Kategorie:Nejlepší články"),
+ 'da': (CAT, u"Kategori:Fremragende artikler"),
+ 'de': (CAT, u"Kategorie:Wikipedia:Exzellent"),
+ 'dsb': (CAT, u"Kategorija:Ekscelentny"),
+ 'el': (BACK, u"Πρότυπο:Αξιόλογο άρθρο"),
+ 'eo': (CAT, u"Kategorio:Elstaraj artikoloj"),
+ 'en': (CAT, u"Category:Featured articles"),
'es': (CAT, u"Categoría:Wikipedia:Artículos destacados"),
- # et: Vikipeedia:Eeskujulikud artiklid
- 'eu': (CAT, u'Kategoria:Nabarmendutako artikuluak'),
- 'fi': (BACK, u"Malline:Suositeltu"),
+ 'et': (CAT, u"Kategooria:Eeskujulikud artiklid"),
+ 'eu': (CAT, u"Kategoria:Nabarmendutako artikuluak"),
+ 'fa': (BACK, u"الگو:نوشتار برگزیده"),
+ 'fi': (CAT, u"Luokka:Suositellut sivut"),
'fr': (CAT, u"Catégorie:Article de qualité"),
'he': (CAT, u"קטגוריה:ערכים מומלצים"),
'hi': (BACK, u"Template:निर्वाचित लेख"),
- 'hr': (BACK, u"Predložak:Izdvojeni članak"),
- 'hu': (BACK, u"Sablon:Kiemelt"),
- 'id': (BACK, u"Templat:Pilihan"),
- 'is': (BACK, u"Snið:Úrvalsgrein"),
+ 'hr': (CAT, u"Kategorija:Izabrani članci"),
+ 'hsb': (CAT, u"Kategorija:Ekscelentny"),
+ 'hu': (CAT, u"Kategória:Kiemelt cikkek"),
+ 'hy': (BACK, u"Կաղապար:Ընտրված հոդված"),
+ 'ia': (CAT, u"Categoria:Articulos eminente"),
+ 'id': (CAT, u"Kategori:Artikel bagus utama"),
+ 'is': (CAT, u"Flokkur:Wikipedia:Úrvalsgreinar"),
'it': (CAT, u"Categoria:Voci in vetrina"),
- 'ja': (BACK, u"Template:秀逸"),
- 'ka': (BACK, u"თარგი:რჩეული"),
- 'ko': (CAT, u"분류:알찬 글 문서"),
- 'ksh': (BACK, u'Schablon:Exzälenter Aatikkel'),
+ 'ja': (BACK, u"Template:Featured article"),
+ 'ka': (CAT, u"კატეგორია:რჩეული სტატიები"),
+ 'km': (BACK, u"ទំព័រគំរូ:អត្ថបទពិសេស"),
+ 'ko': (BACK, u"틀:알찬 글 딱지"),
+ 'ksh': (CAT, u"Saachjrupp:Exzälenter Aatikkel"),
+ 'la': (CAT, u"Categoria:Paginae mensis"),
+ 'lo': (CAT, u"ໝວດ:ບົດຄວາມດີເດັ່ນ"),
'lt': (CAT, u"Kategorija:Vikipedijos pavyzdiniai straipsniai"),
'lv': (CAT, u"Kategorija:Nedēļas raksti"),
+ 'mk': (CAT, u"Категорија:Избрани статии"),
'ml': (BACK, u"Template:Featured"),
- 'nl': (BACK, u"Sjabloon:Etalage"),
+ 'mr': (CAT, u"वर्ग:मुखपृष्ठ सदर लेख"),
+ 'ms': (BACK, u"Templat:Rencana pilihan"),
+ 'nl': (CAT, u"Categorie:Wikipedia:Etalage-artikelen"),
'nn': (BACK, u"Mal:God artikkel"),
'no': (CAT, u"Kategori:Utmerkede artikler"),
+ 'oc': (CAT, u"Categoria:Article de qualitat"),
'pl': (CAT, u"Kategoria:Artykuły na medal"),
'pt': (CAT, u"Categoria:!Artigos destacados"),
'ro': (CAT, u"Categorie:Articole de calitate"),
'ru': (CAT, u"Категория:Википедия:Избранные статьи"),
'sh': (CAT, u"Category:Izabrani članci"),
- 'simple': (BACK, u"template:vgood-large"),
+ 'simple': (CAT, u"Category:Very good articles"),
'sk': (BACK, u"Šablóna:Perfektný článok"),
- 'sl': (CAT, u"Category:Izbrani članki"),
- 'sq': (BACK, u"Template:Perfekt"),
- 'sr': (BACK, u"Шаблон:Изабрани"),
+ 'sl': (CAT, u"Kategorija:Vsi izbrani članki"),
+ 'sq': (BACK, u"Stampa:Artikulli perfekt"),
+ 'sr': (CAT, u"Категорија:Изабрани"),
'sv': (CAT, u"Kategori:Wikipedia:Utmärkta artiklar"),
- 'ta': (BACK, u"வார்ப்புரு:சிறப்பு"),
- 'th': (CAT,u"หมวดหมู่:บทความคัดสรร"),
+ 'ta': (CAT, u"பகுப்பு:சிறப்புக் கட்டுரைகள்"),
+ 'th': (BACK, u"แม่แบบ:บทความคัดสรร"),
'tl': (BACK, u"Template:Napiling artikulo"),
+ 'tr': (BACK, u"Şablon:Seçkin madde"),
+ #'tt': (CAT, u"Törkem:Şäp mäqälä"),
'uk': (CAT, u"Категорія:Вибрані статті"),
+ 'ur': (CAT, u"زمرہ:منتخب مقالے"),
'vi': (CAT, u"Thể loại:Bài viết chọn lọc"),
'vo': (CAT, u"Klad:Yegeds gudik"),
+ #'wa': (CAT, u"Categoreye:Raspepyî årtike"),
+ 'yi': (CAT, u"קאַטעגאָריע:רעקאמענדירטע ארטיקלען"),
+ 'yo': (BACK, u"Template:Ayoka pataki"),
'zh': (CAT, u"Category:特色条目"),
+ 'zh-classical': (CAT, u"Category:絕妙好文"),
'zh-yue': (BACK, u"Template:正文"),
+}
+"""Templates:
+ 'af': (BACK, u"Sjabloon:Voorbladster"),
+ 'als': (BACK, u"Vorlage:Besonders gelungener Artikel"),
+ 'ast': (BACK, u"Plantía:Destacaos"),
+ 'ar': (BACK, u"قالب:مقالة مختارة"),
+ #'az': Vikipediya:Fəal məzmun
+ 'bar': (BACK, u"Vorlage:Berig"),
+ 'bat-smg': (BACK, u"Šabluons:Featured"),
+ #'be': (BACK, u"Шаблон:Выбраны артыкул"),
+ 'be-x-old': (BACK, u"Шаблён:Выбраны артыкул"),
+ 'bg': (BACK, u"Шаблон:Избрана статия"),
+ 'bn': (BACK, u"Template:নির্বাচিত নিবন্ধ"),
+ 'bs': (BACK, u"Šablon:Wiki članak"),
+ 'ca': (BACK, u"Plantilla:Article de qualitat"),
+ 'cs': (BACK, u"Šablona:Nejlepší článek"),
+ 'da': (BACK, u"Skabelon:Fremragende"),
+ 'de': (BACK, u"Vorlage:Exzellent"),
+ 'dsb': (BACK, u"Pśedłoga:Ekscelentny"),
+ 'el': (BACK, u"Πρότυπο:Αξιόλογο άρθρο"),
+ 'eo': (BACK, u"Ŝablono:Elstara"),
+ 'en': (BACK, u"Template:Featured article"),
+ 'es': (BACK, u"Plantilla:Artículo destacado"),
+ 'et': (BACK, u"Mall:Eeskujulik artikkel"),
+ 'eu': (BACK, u"Txantiloi:Nabarmendutako artikulua"),
+ 'fa': (BACK, u"الگو:نوشتار برگزیده"),
+ 'fi': (BACK, u"Malline:Suositeltu"),
+ 'fr': (BACK, u"Modèle:Article de qualité"),
+ 'he': (BACK, u"תבנית:ערך מומלץ"),
+ 'hi': (BACK, u"Template:निर्वाचित लेख"),
+ 'hr': (BACK, u"Predložak:Izdvojeni članak"),
+ 'hsb': (BACK, u"Předłoha:Ekscelentny"),
+ 'hu': (BACK, u"Sablon:Kiemelt"),
+ 'hy': (BACK, u"Կաղապար:Ընտրված հոդված"),
+ 'ia': (BACK, u"Patrono:Eminente"),
+ 'id': (BACK, u"Templat:Artikel bagus utama"),
+ 'is': (BACK, u"Snið:Úrvalsgrein"),
+ 'it': (BACK, u"Template:Vetrina"),
+ 'ja': (BACK, u"Template:Featured article"),
+ 'ka': (BACK, u"თარგი:რჩეული"),
+ 'km': (BACK, u"ទំព័រគំរូ:អត្ថបទពិសេស"),
+ 'ko': (BACK, u"틀:알찬 글 딱지"),
+ 'ksh': (BACK, u'Schablon:Exzälenter Aatikkel'),
+ 'la': (BACK, u"Formula:FA stella"),
+ 'lo': (BACK, u"ແມ່ແບບ:ປ້າຍບົດຄວາມດີເດັ່ນ"),
+ 'lt': (BACK, u"Šablonas:Featured"),
+ 'mk': (BACK, u"Шаблон:СликаАгол"),
+ 'ml': (BACK, u"Template:Featured"),
+ 'mr': (BACK, u"साचा:मुखपृष्ठ सदर टीप"),
+ 'ms': (BACK, u"Templat:Rencana pilihan"),
+ 'nl': (BACK, u"Sjabloon:Etalage"),
+ 'nn': (BACK, u"Mal:God artikkel"),
+ 'no': (BACK, u"Mal:Utmerket"),
+ 'pl': (BACK, u"Szablon:Medal"),
+ 'ru': (BACK, u"Шаблон:Избранная статья"),
+ 'simple': (BACK, u"Template:Vgood"),
+ 'sk': (BACK, u"Šablóna:Perfektný článok"),
+ 'sl': (BACK, u"Predloga:Zvezdica"),
+ 'sq': (BACK, u"Stampa:Artikulli perfekt"),
+ 'sr': (BACK, u"Шаблон:Изабрани"),
+ 'sv': (BACK, u"Mall:Utmärkt"),
+ 'ta': (BACK, u"வார்ப்புரு:சிறப்புக் கட்டுரை"),
+ 'th': (BACK, u"แม่แบบ:บทความคัดสรร"),
+ 'tl': (BACK, u"Template:Napiling artikulo"),
+ 'tr': (BACK, u"Şablon:Seçkin madde"),
+ 'uk': (BACK, u"Шаблон:Медаль"),
+ 'ur': (BACK, u"سانچہ:منتخب مقالہ"),
+ 'vi': (BACK, u"Tiêu bản:Sao chọn lọc"),
+ 'yi': (BACK, u"מוסטער:רעקאמענדירטער ארטיקל"),
+ 'yo': (BACK, u"Template:Ayoka pataki"),
+ 'zh': (BACK, u"Template:Featured article"),
'zh-classical': (BACK, u"Template:絕妙好文"),
-}
+ 'zh-yue': (BACK, u"Template:正文"),
+"""
# globals
interactive=0
@@ -193,7 +398,7 @@
afterpage=u"!"
try:
- cache=pickle.load(file("featured/cache","rb"))
+ cache=pickle.load(file("cache/featured","rb"))
except:
cache={}
@@ -245,8 +450,8 @@
if ourpage.isRedirectPage():
wikipedia.output(u"%s -> double redirect, skipping" % page.title())
return None
- if not ourpage.exists():
- wikipedia.output(u"%s -> page doesn't exist, skipping" % ourpage.title())
+ if not ourpage.exists():
+ wikipedia.output(u"%s -> page doesn't exist, skipping" % ourpage.title())
return None
try:
iw=ourpage.interwiki()
@@ -320,7 +525,7 @@
continue
comment = wikipedia.setAction(wikipedia.translate(wikipedia.getSite(), msg) % (fromsite.lang, a.title()))
- ### Moving {{Link FA|xx}} to top of interwikis ###
+ ### Moving {{Link FA|xx}} to top of interwikis ###
if template_on_top == True:
text=wikipedia.replaceCategoryLinks(text+(u"{{%s|%s}}"%(templatelist[0], fromsite.lang)), atrans.categories())
@@ -379,5 +584,5 @@
finally:
wikipedia.stopme()
if not nocache:
- pickle.dump(cache,file("featured/cache","wb"))
-
+ pickle.dump(cache,file("cache/featured","wb"))
+