Revision: 5698 Author: shinjiman Date: 2008-07-09 08:56:49 +0000 (Wed, 09 Jul 2008)
Log Message: ----------- update messages (zh) SF.net article id 2001978 patch by Alex S.H. Lin
Modified Paths: -------------- trunk/pywikipedia/families/wikinews_family.py trunk/pywikipedia/families/wikipedia_family.py trunk/pywikipedia/families/wikiquote_family.py trunk/pywikipedia/families/wiktionary_family.py trunk/pywikipedia/family.py trunk/pywikipedia/imagetransfer.py trunk/pywikipedia/interwiki.py trunk/pywikipedia/movepages.py trunk/pywikipedia/protect.py trunk/pywikipedia/redirect.py trunk/pywikipedia/selflink.py trunk/pywikipedia/table2wiki.py trunk/pywikipedia/welcome.py
Modified: trunk/pywikipedia/families/wikinews_family.py =================================================================== --- trunk/pywikipedia/families/wikinews_family.py 2008-07-09 06:58:35 UTC (rev 5697) +++ trunk/pywikipedia/families/wikinews_family.py 2008-07-09 08:56:49 UTC (rev 5698) @@ -21,9 +21,12 @@ self.langs[lang] = '%s.wikinews.org' % lang
# Override defaults + self.namespaces[2]['cs'] = u'Redaktor' self.namespaces[2]['pl'] = u'Wikireporter' + self.namespaces[3]['cs'] = u'Redaktor diskuse' self.namespaces[3]['pl'] = u'Dyskusja Wikireportera'
+ # Most namespaces are inherited from family.Family. # Translation used on all wikis for the different namespaces. # (Please sort languages alphabetically)
Modified: trunk/pywikipedia/families/wikipedia_family.py =================================================================== --- trunk/pywikipedia/families/wikipedia_family.py 2008-07-09 06:58:35 UTC (rev 5697) +++ trunk/pywikipedia/families/wikipedia_family.py 2008-07-09 08:56:49 UTC (rev 5698) @@ -141,6 +141,7 @@ 'als': u'Wikipedia Diskussion', 'an': u'Descusión Wikipedia', 'ar': u'نقاش ويكيبيديا', + 'as': u'Wikipedia वार्ता', 'ast': u'Uiquipedia alderique', 'av': u'Обсуждение Wikipedia', 'ay': u'Wikipedia Discusión',
Modified: trunk/pywikipedia/families/wikiquote_family.py =================================================================== --- trunk/pywikipedia/families/wikiquote_family.py 2008-07-09 06:58:35 UTC (rev 5697) +++ trunk/pywikipedia/families/wikiquote_family.py 2008-07-09 08:56:49 UTC (rev 5698) @@ -50,6 +50,7 @@ 'is': u'Wikivitnun', 'ka': [u'ვიკიციტატა', u'Wikiquote'], 'kk': u'Уикидәйек', + 'ko': u'위키인용집', 'la': u'Vicicitatio', 'ml': u'വിക്കി ചൊല്ലുകള്', 'pl': u'Wikicytaty', @@ -101,7 +102,7 @@ 'ka': [u'ვიკიციტატა განხილვა', u'Wikiquote განხილვა'], 'kk': u'Уикидәйек талқылауы', 'kn': u'Wikiquote ಚರ್ಚೆ', - 'ko': u'Wikiquote토론', + 'ko': u'위키인용집토론', 'ku': u'Wikiquote nîqaş', 'la': u'Disputatio Vicicitationis', 'lb': u'Wikiquote Diskussioun', @@ -230,17 +231,22 @@ 'bm': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Bam... 'cr': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Neh... 'dk': 'da', + 'ga': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Gae... 'jp': 'ja', + 'kr': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Kan... 'ks': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Kas... 'kw': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ker... 'minnan':'zh-min-nan', 'na': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Nau... 'nb': 'no', + 'nds': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Low... + 'qu': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Que... 'tk': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Tur... 'tokipona': None, 'tt': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Tat... 'ug': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Oyg... 'vo': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Vol... + 'za':None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Zhu... 'zh-tw': 'zh', 'zh-cn': 'zh' }
Modified: trunk/pywikipedia/families/wiktionary_family.py =================================================================== --- trunk/pywikipedia/families/wiktionary_family.py 2008-07-09 06:58:35 UTC (rev 5697) +++ trunk/pywikipedia/families/wiktionary_family.py 2008-07-09 08:56:49 UTC (rev 5698) @@ -359,7 +359,8 @@ 'bo': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Tib... 'ch': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Cha... 'cr': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Neh... - 'dk': 'da', + 'dk': 'da', + 'iu': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Inu... 'jp': 'ja', 'mh': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Mar... 'mo': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Mol... @@ -370,12 +371,14 @@ 'pi': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Pal... 'rm': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Rha... 'rn': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Kir... + 'sc': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Sar... 'sn': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Sho... 'to': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ton... 'tlh': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Kli... 'tw': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Twi... 'tokipona': None, - 'xh': None,# http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Xho... + 'xh': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Xho... + 'yo': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Yor... 'zh-tw': 'zh', 'zh-cn': 'zh' }
Modified: trunk/pywikipedia/family.py =================================================================== --- trunk/pywikipedia/family.py 2008-07-09 06:58:35 UTC (rev 5697) +++ trunk/pywikipedia/family.py 2008-07-09 08:56:49 UTC (rev 5698) @@ -133,6 +133,7 @@ 'als': u'Spezial', 'an': u'Espezial', 'ar': u'خاص', + 'as': u'विशेष', 'ast': u'Especial', 'av': u'Служебная', 'ay': u'Especial', @@ -277,6 +278,7 @@ 'als': u'Diskussion', 'an': u'Descusión', 'ar': u'نقاش', + 'as': u'वार्ता', 'ast': u'Alderique', 'av': u'Обсуждение', 'ay': u'Discusión', @@ -432,6 +434,7 @@ 'als': u'Benutzer', 'an': u'Usuario', 'ar': u'مستخدم', + 'as': u'सदस्य', 'ast': u'Usuariu', 'av': u'Участник', 'ay': u'Usuario', @@ -587,6 +590,7 @@ 'als': u'Benutzer Diskussion', 'an': u'Descusión usuario', 'ar': u'نقاش المستخدم', + 'as': u'सदस्य वार्ता', 'ast': u'Usuariu alderique', 'av': u'Обсуждение участника', 'ay': u'Usuario Discusión', @@ -748,6 +752,7 @@ 'als': u'Bild', 'an': u'Imachen', 'ar': u'صورة', + 'as': u'चित्र', 'ast': u'Imaxe', 'av': u'Изображение', 'ay': u'Imagen', @@ -897,6 +902,7 @@ 'als': u'Bild Diskussion', 'an': u'Descusión imachen', 'ar': u'نقاش الصورة', + 'as': u'चित्र वार्ता', 'ast': u'Imaxe alderique', 'av': u'Обсуждение изображения', 'ay': u'Imagen Discusión', @@ -1246,6 +1252,7 @@ 'als': u'Vorlage', 'an': u'Plantilla', 'ar': u'قالب', + 'as': u'साँचा', 'ast': u'Plantía', 'av': u'Шаблон', 'ay': u'Plantilla', @@ -1388,6 +1395,7 @@ 'als': u'Vorlage Diskussion', 'an': u'Descusión plantilla', 'ar': u'نقاش القالب', + 'as': u'साँचा वार्ता', 'ast': u'Plantía alderique', 'av': u'Обсуждение шаблона', 'ay': u'Plantilla Discusión', @@ -1840,6 +1848,7 @@ 'als': u'Kategorie', 'an': u'Categoría', 'ar': u'تصنيف', + 'as': u'श्रेणी', 'ast': u'Categoría', 'av': u'Категория', 'ay': u'Categoría', @@ -1991,6 +2000,7 @@ 'als': u'Kategorie Diskussion', 'an': u'Descusión categoría', 'ar': u'نقاش التصنيف', + 'as': u'श्रेणी वार्ता', 'ast': u'Categoría alderique', 'av': u'Обсуждение категории', 'ay': u'Categoría Discusión',
Modified: trunk/pywikipedia/imagetransfer.py =================================================================== --- trunk/pywikipedia/imagetransfer.py 2008-07-09 06:58:35 UTC (rev 5697) +++ trunk/pywikipedia/imagetransfer.py 2008-07-09 08:56:49 UTC (rev 5698) @@ -46,6 +46,7 @@ 'pl':u"Ten obraz został skopiowany z %s. Oryginalny opis to:\r\n\r\n%s", 'pt':u"Esta imagem foi copiada de %s. A descrição original foi:\r\n\r\n%s", 'sr':u"Ова слика је копирана са %s. Оригинални опис је:\r\n\r\n%s", + 'zh':u"本圖像從 %s 複製,原始說明資料:\r\n\r\n%s", }
nowCommonsTemplate = { @@ -56,12 +57,14 @@ 'he': u'{{גם בוויקישיתוף|%s}}', 'ia': u'{{OraInCommons|Imagine:%s}}', 'it': u'{{NowCommons unlink|%s}}', + 'ja': u'{{NowCommons|Image:%s}}', 'kk': u'{{NowCommons|Image:%s}}', 'lt': u'{{NowCommons|Image:%s}}', 'nl': u'{{NuCommons|Image:%s}}', 'pl': u'{{NowCommons|%s}}', 'pt': u'{{NowCommons|%s}}', 'sr': u'{{NowCommons|%s}}', + 'zh': u'{{NowCommons|Image:%s}}', }
#nowCommonsThis = { @@ -78,6 +81,7 @@ 'eo': u'Dosiero nun estas havebla en la Wikimedia-Komunejo.', 'he': u'הקובץ זמין כעת בוויקישיתוף.', 'ia': u'Le file es ora disponibile in Wikimedia Commons.', + 'ja': u'ファイルはウィキメディア・コモンズにあります', 'it': u'L'immagine è adesso disponibile su Wikimedia Commons.', 'kk': u'Файлды енді Wikimedia Ортаққорынан қатынауға болады.', 'lt': u'Failas įkeltas į Wikimedia Commons projektą.', @@ -85,6 +89,7 @@ 'pl': u'Plik jest teraz dostępny na Wikimedia Commons.', 'pt': u'Arquivo está agora na Wikimedia Commons.', 'sr': u'Слика је сада доступна и на Викимедија Остави.', + 'zh': u'檔案已存在於維基共享資源。', }
#nowCommonsThisMessage = {
Modified: trunk/pywikipedia/interwiki.py =================================================================== --- trunk/pywikipedia/interwiki.py 2008-07-09 06:58:35 UTC (rev 5697) +++ trunk/pywikipedia/interwiki.py 2008-07-09 08:56:49 UTC (rev 5698) @@ -416,7 +416,7 @@ 'vo': (u'bot ', u'läükon', u'moükon', u'votükon'), 'yi': (u'באט ', u'צוגעלייגט', u'אראפגענומען', u'געענדערט'), 'yue': (u'機械人 ', u'加', u'減', u'改'), - 'zh': (u'機器人 ', u'正在新增', u'移除', u'修改'), + 'zh': (u'機器人 ', u'新增', u'移除', u'修改'), 'zh-classical': (u'僕 ', u'增', u'削', u'修'), 'zh-yue': (u'機械人 ', u'加', u'減', u'改'), }
Modified: trunk/pywikipedia/movepages.py =================================================================== --- trunk/pywikipedia/movepages.py 2008-07-09 06:58:35 UTC (rev 5697) +++ trunk/pywikipedia/movepages.py 2008-07-09 08:56:49 UTC (rev 5698) @@ -61,6 +61,7 @@ 'pl': u'Przeniesienie artykułu przez robota', 'pt': u'Bot: Página movida', 'ru': u'Переименование страницы при помощи робота', + 'zh': u'機器人:移動頁面', }
deletesummary={ @@ -75,6 +76,7 @@ 'nl': u'Redirect verwijderd na verplaatsen van pagina ', 'pt': u'Bot: Página apagada depois de movida', 'ru': u'Робот: удаление перенаправления после переименования страницы', + 'zh': u'機器人:刪除頁面移動後的重定向', # These are too unspecific: #'pl': u'Usunięcie artykułu przez robota',
Modified: trunk/pywikipedia/protect.py =================================================================== --- trunk/pywikipedia/protect.py 2008-07-09 06:58:35 UTC (rev 5697) +++ trunk/pywikipedia/protect.py 2008-07-09 08:56:49 UTC (rev 5698) @@ -53,30 +53,35 @@ 'ar': u'بوت: حماية قائمة من الملفات.', 'it': u'Bot: Protezione di una lista di pagine.', 'pt': u'Bot: Protegendo uma lista de artigos.', + 'zh': u'機器人:保護清單中的所有檔案', } msg_protect_category = { 'en': u'Robot - Protecting all pages from category %s', 'ar': u'روبوت - حماية كل الصفحات من التصنيف %s', 'it': u'Bot: Protezione di tutte le pagine nella categoria %s.', 'pt': u'Bot: Protegendo todos os artigos da categoria %s', + 'zh': u'機器人: 保護目錄 %s 的所有頁面', } msg_protect_links = { 'en': u'Robot - Protecting all pages linked from %s', 'ar': u'روبوت - حماية كل الصفحات الموصولة من %s', 'it': u'Bot: Protezione di tutte le pagine linkate da %s.', 'pt': u'Bot: Protegendo todos os artigos ligados a %s', + 'zh': u'機器人: 保護所有從 %s 連結的頁面', } msg_protect_ref = { 'en': u'Robot - Protecting all pages referring from %s', 'ar': u'روبوت - حماية كل الصفحات الراجعة من %s', 'it': u'Bot: Protezione di tutte le pagine con link verso %s.', 'pt': u'Bot: Protegendo todos os artigos afluentes a %s', + 'zh': u'機器人: 保護所有連至 %s 的頁面', } msg_protect_images = { 'en': u'Robot - Protecting all images on page %s', 'ar': u'روبوت - حماية كل الصور في الصفحة %s', 'it': u'Bot: Protezione di tutte le immagini presenti in %s.', 'pt': u'Bot: Protegendo todas as imagens do artigo %s', + 'zh': u'機器人: 保護頁面 %s 中的所有圖條', }
class ProtectionRobot:
Modified: trunk/pywikipedia/redirect.py =================================================================== --- trunk/pywikipedia/redirect.py 2008-07-09 06:58:35 UTC (rev 5697) +++ trunk/pywikipedia/redirect.py 2008-07-09 08:56:49 UTC (rev 5698) @@ -115,6 +115,20 @@ 'zh-yue': u'機械人:跳轉目標唔存在', }
+#Summary message for put broken redirect to speedy delete +sd_tagging_sum = { + 'en': u'Robot: Tagging for speedy deletion', + 'ja': u'ロボットによる:迷子のリダイレクトを即時削除へ', + 'zh':u'機器人: 將損壞的重定向提報快速刪除', +} + +#put deletion template +sd_template = { + 'en':u'{{db-r1}}', + 'ja':u'{{即時削除|壊れたリダイレクト}}', + 'zh':u'{{delete|R1}}', +} + class RedirectGenerator: def __init__(self, xmlFilename=None, namespaces=[], offset=-1, use_move_log=False): @@ -343,7 +357,16 @@ except wikipedia.NoPage: if self.prompt(u'Redirect target %s does not exist. Do you want to delete %s?' % (targetPage.aslink(), redir_page.aslink())): - redir_page.delete(reason, prompt = False) + try: + redir_page.delete(reason, prompt = False) + except wikipedia.NoUsername: + if sd_template.has_key(targetPage.site().lang) and sd_tagging_sum.has_key(targetPage.site().lang): + wikipedia.output("No sysop in user-config.py, put page to speedy deletion.") + content = redir_page.get(get_redirect=True) + content = wikipedia.translate(targetPage.site().lang,sd_template)+"\n"+content + summary = wikipedia.translate(targetPage.site().lang,sd_tagging_sum) + redir_page.put(content, summary) + except wikipedia.IsRedirectPage: wikipedia.output( u'Redirect target %s is also a redirect! Won't delete anything.' % targetPage.aslink()) @@ -417,11 +440,13 @@ % targetPage.aslink())
content=targetPage.get(get_redirect=True) - if wikipedia.Page(wikipedia.getSite(), u"Template:Db-r1").exists(): + if sd_template.has_key(targetPage.site().lang) and sd_tagging_sum.has_key(targetPage.site().lang): wikipedia.output(u"Tagging redirect for deletion") # Delete the two redirects - targetPage.put("{{db-r1}}\n"+content, "Tagging for speedy deletion") - redir.put("{{db-r1}}\n"+content, "Tagging for speedy deletion") + content = wikipedia.translate(targetPage.site().lang,sd_template)+"\n"+content + summary = wikipedia.translate(targetPage.site().lang,sd_tagging_sum) + targetPage.put(content, summary) + redir.put(content, summary) else: break # TODO Better implement loop redirect else:
Modified: trunk/pywikipedia/selflink.py =================================================================== --- trunk/pywikipedia/selflink.py 2008-07-09 06:58:35 UTC (rev 5697) +++ trunk/pywikipedia/selflink.py 2008-07-09 08:56:49 UTC (rev 5698) @@ -48,7 +48,8 @@ 'nn':u'robot: fjerna sjølvlenkjer', 'no':u'robot: fjerner selvlenker', 'pl':u'Robot automatycznie usuwa linki zwrotne', - 'pt':u'Bot: Retirando link para o próprio artigo' + 'pt':u'Bot: Retirando link para o próprio artigo', + 'zh':u'機器人:移除自我連結', }
class XmlDumpSelflinkPageGenerator:
Modified: trunk/pywikipedia/table2wiki.py =================================================================== --- trunk/pywikipedia/table2wiki.py 2008-07-09 06:58:35 UTC (rev 5697) +++ trunk/pywikipedia/table2wiki.py 2008-07-09 08:56:49 UTC (rev 5698) @@ -75,6 +75,7 @@ 'no':u'bot: Konverter tabellsyntaks', 'pl':u'Kontrolowany przez użytkownika robot poprawia składnię tabeli', 'pt':u'Bot: Sintaxe da tabela HTML para Wiki atualizada', + 'zh':u'機器人:表格語法更新', }
msg_one_warning = {'ar':u'بوت بواسطة مستخدم: تحديث تهيئة الجدول - %d تحذير!', @@ -91,6 +92,7 @@ 'no':u'bot: Konverterer tabellsyntaks – %d advarsel!', 'pl':u'Kontrolowany przez użytkownika robot poprawia składnię tabeli - %d ostrzeżenie!', 'pt':u'Bot: Sintaxe da tabela HTML para Wiki atualizada - %d aviso', + 'zh':u'機器人:表格語法更新 - %d 注意!', }
msg_multiple_warnings = {'ar':u'بوت بواسطة مستخدم: تحديث تهيئة الجدول - %d تحذير!', @@ -107,6 +109,7 @@ 'no':u'bot: Konverterer tabellsyntaks – %d advarsler!', 'pl':u'Kontrolowany przez użytkownika robot poprawia składnię tabeli - %d ostrzeżeń!', 'pt':u'Bot: Sintaxe da tabela HTML para Wiki atualizada - %d avisos', + 'zh':u'機器人:表格語法更新 - 注意 %d', }
class TableXmlDumpPageGenerator:
Modified: trunk/pywikipedia/welcome.py =================================================================== --- trunk/pywikipedia/welcome.py 2008-07-09 06:58:35 UTC (rev 5697) +++ trunk/pywikipedia/welcome.py 2008-07-09 08:56:49 UTC (rev 5698) @@ -214,7 +214,7 @@ 'sq': u'Project:Tung log', 'sr': u'Project:Добродошлице', 'vo': None, # no welcome log on vo.wiki - 'zh': u'user:Welcomebot/欢迎日志', + 'zh': u'User:Welcomebot/欢迎日志', } #The edit summary for the welcome message (e.g. Welcome!). summary = {
2008/7/9 shinjiman@svn.wikimedia.org:
Revision: 5698 Author: shinjiman Date: 2008-07-09 08:56:49 +0000 (Wed, 09 Jul 2008)
Log Message:
update messages (zh) SF.net article id 2001978 patch by Alex S.H. Lin
===================================================================
--- trunk/pywikipedia/redirect.py 2008-07-09 06:58:35 UTC (rev 5697) +++ trunk/pywikipedia/redirect.py 2008-07-09 08:56:49 UTC (rev 5698) @@ -115,6 +115,20 @@ 'zh-yue': u'機械人:跳轉目標唔存在', }
+#Summary message for put broken redirect to speedy delete +sd_tagging_sum = {
- 'en': u'Robot: Tagging for speedy deletion',
- 'ja': u'ロボットによる:迷子のリダイレクトを即時削除へ',
- 'zh':u'機器人: 將損壞的重定向提報快速刪除',
+}
+#put deletion template +sd_template = {
- 'en':u'{{db-r1}}',
- 'ja':u'{{即時削除|壊れたリダイレクト}}',
- 'zh':u'{{delete|R1}}',
+}
class RedirectGenerator: def __init__(self, xmlFilename=None, namespaces=[], offset=-1, use_move_log=False): @@ -343,7 +357,16 @@ except wikipedia.NoPage: if self.prompt(u'Redirect target %s does not exist. Do you want to delete %s?' % (targetPage.aslink(), redir_page.aslink())):
redir_page.delete(reason, prompt = False)
try:
redir_page.delete(reason, prompt = False)
except wikipedia.NoUsername:
if sd_template.has_key(targetPage.site().lang) and sd_tagging_sum.has_key(targetPage.site().lang):
wikipedia.output("No sysop in user-config.py, put page to speedy deletion.")
content = redir_page.get(get_redirect=True)
content = wikipedia.translate(targetPage.site().lang,sd_template)+"\n"+content
summary = wikipedia.translate(targetPage.site().lang,sd_tagging_sum)
redir_page.put(content, summary)
except wikipedia.IsRedirectPage: wikipedia.output( u'Redirect target %s is also a redirect! Won\'t delete anything.' % targetPage.aslink())
@@ -417,11 +440,13 @@ % targetPage.aslink())
content=targetPage.get(get_redirect=True)
if wikipedia.Page(wikipedia.getSite(), u"Template:Db-r1").exists():
if sd_template.has_key(targetPage.site().lang) and sd_tagging_sum.has_key(targetPage.site().lang): wikipedia.output(u"Tagging redirect for deletion") # Delete the two redirects
targetPage.put("{{db-r1}}\n"+content, "Tagging for speedy deletion")
redir.put("{{db-r1}}\n"+content, "Tagging for speedy deletion")
content = wikipedia.translate(targetPage.site().lang,sd_template)+"\n"+content
summary = wikipedia.translate(targetPage.site().lang,sd_tagging_sum)
targetPage.put(content, summary)
redir.put(content, summary) else: break # TODO Better implement loop redirect else:
Please, don't do this. The change on redirect.py was not a locale update, and I know it only because I had already read the bug ticket. Did you checked its behavior before committing it ?
Hopefully it seems to work, but please commit language updates and content changes separately...
pywikipedia-l@lists.wikimedia.org