Revision: 4868 Author: rotem Date: 2008-01-13 17:06:17 +0000 (Sun, 13 Jan 2008)
Log Message: ----------- (patch 1870032) new locale update for zh, ja
Modified Paths: -------------- trunk/pywikipedia/add_text.py trunk/pywikipedia/blockpageschecker.py trunk/pywikipedia/capitalize_redirects.py trunk/pywikipedia/checkimages.py trunk/pywikipedia/commons_link.py trunk/pywikipedia/copyright.py trunk/pywikipedia/cosmetic_changes.py trunk/pywikipedia/fixes.py trunk/pywikipedia/fixing_redirects.py trunk/pywikipedia/followlive.py trunk/pywikipedia/noreferences.py trunk/pywikipedia/nowcommons.py trunk/pywikipedia/welcome.py
Modified: trunk/pywikipedia/add_text.py =================================================================== --- trunk/pywikipedia/add_text.py 2008-01-13 16:57:32 UTC (rev 4867) +++ trunk/pywikipedia/add_text.py 2008-01-13 17:06:17 UTC (rev 4868) @@ -64,7 +64,9 @@ 'en': u'Bot: Adding %s', 'he': u'בוט: מוסיף %s', 'it': u'Bot: Aggiungo %s', + 'ja': u'ロボットによる: 追加 %s', 'pt': u'Bot: Adicionando %s', + 'zh': u'機器人: 正在新增 %s', }
class NoEnoughData(wikipedia.Error):
Modified: trunk/pywikipedia/blockpageschecker.py =================================================================== --- trunk/pywikipedia/blockpageschecker.py 2008-01-13 16:57:32 UTC (rev 4867) +++ trunk/pywikipedia/blockpageschecker.py 2008-01-13 17:06:17 UTC (rev 4868) @@ -87,7 +87,7 @@ 'fr':u'Robot: Retrait du bandeau protection/semi-protection d'une page qui ne l'es plus', 'he':u'בוט: מסיר תבנית שעבר זמנה', 'it':u'Bot: Tolgo template di avviso blocco scaduto', - 'ja':u'ロボットによる: 保護テンプレート削除', + 'ja':u'ロボットによる: 保護テンプレート除去', 'pt':u'Bot: Retirando predefinição de proteção', 'zh':u'機器人: 移除過期的保護模板', }
Modified: trunk/pywikipedia/capitalize_redirects.py =================================================================== --- trunk/pywikipedia/capitalize_redirects.py 2008-01-13 16:57:32 UTC (rev 4867) +++ trunk/pywikipedia/capitalize_redirects.py 2008-01-13 17:06:17 UTC (rev 4868) @@ -43,6 +43,7 @@ 'en': u'Robot: Create redirect to [[%s]]', 'fr': u'robot: créez redirect à [[%s]]', 'he': u'בוט: יוצר הפניה לדף [[%s]]', + 'ja': u'ロボットによる: リダイレクト作成 [[%s]]', 'pt': u'Bot: Criando redirecionamento para [[%s]]', 'zh': u'機器人: 建立重定向至[[%s]]', }
Modified: trunk/pywikipedia/checkimages.py =================================================================== --- trunk/pywikipedia/checkimages.py 2008-01-13 16:57:32 UTC (rev 4867) +++ trunk/pywikipedia/checkimages.py 2008-01-13 17:06:17 UTC (rev 4868) @@ -81,7 +81,7 @@
# That's what you want that will be added. (i.e. the {{no source}} with the right day/month/year ) n_txt = { - 'commons':'\n{{subst:nld}}', + 'commons':'\n{{subst:nld}}', 'en' :'\n{{subst:nld}}', 'it' :'\n{{subst:unverdata}}', 'ja':'{{subst:Nsd}}', @@ -91,7 +91,7 @@
txt_find = { 'commons':['{{no license', '{{nld'], - 'en':['{{nld', '{{no license'], + 'en':['{{nld', '{{no license'], 'hu':[u'{{nincsforrás',u'{{nincslicenc'], 'it':[u'{{unverdata', u'{{unverified'], 'ja':[u'{{no source', u'{{unknown', u'{{non free', u'<!--削除についての議論が終了するまで',], @@ -160,7 +160,7 @@
# Text that will be add if the bot find a unknown extension. delete_immediately_notification = { - 'commons':'The [[:Image:%s]] file has a wrong extension, please check. ~~~~', + 'commons':'The [[:Image:%s]] file has a wrong extension, please check. ~~~~', 'en' :'The [[:Image:%s]] file has a wrong extension, please check. ~~~~', 'it' :'{{subst:Utente:Filbot/Ext|%s}}', 'hu' :u'A [[:Kép:%s]] fájlnak rossz a kiterjesztése, kérlek ellenőrízd. ~~~~', @@ -208,7 +208,7 @@ # The message that the bot will add the second time that find another license problem. second_message_without_license = { 'commons':None, - 'en': None, + 'en': None, 'it':':{{subst:Utente:Filbot/Senza licenza2|%s}} --~~~~', 'hu':u'\nSzia! Úgy tűnik a [[:Kép:%s]] képpel is hasonló a probléma, mint az előbbivel. Kérlek olvasd el a [[WP:KÉPLIC|feltölthető képek]]ről szóló oldalunk, és segítségért fordulj a [[WP:KF-JO|Jogi kocsmafalhoz]]. Köszönöm --~~~~', 'ja':None, @@ -218,8 +218,8 @@ # That's useful if you are running the bot on Toolserver. page_with_settings = { 'commons':u'User:Filbot/Settings', - 'en':None, - 'hu':None, + 'en':None, + 'hu':None, 'it':u'Utente:Nikbot/Settings#Settings', 'ja':None, 'zh':u"User:Alexbot/cisettings#Settings", @@ -228,7 +228,7 @@ # This is the page where the bot will store them. report_page = { 'commons':'User:Filbot/Report', - 'en' :'User:Filnik/Report', + 'en' :'User:Filnik/Report', 'it' :'Utente:Nikbot/Report', 'ja':'User:Alexbot/report', 'hu' :'User:Bdamokos/Report', @@ -980,7 +980,7 @@ if lang == 'commons': head = nh % imageName notification = nn - else: + else: notification = nn % imageName head = nh report(unvertext, imageName, notification, head, smwl)
Modified: trunk/pywikipedia/commons_link.py =================================================================== --- trunk/pywikipedia/commons_link.py 2008-01-13 16:57:32 UTC (rev 4867) +++ trunk/pywikipedia/commons_link.py 2008-01-13 17:06:17 UTC (rev 4868) @@ -39,13 +39,13 @@ comment1 = { 'en':u'Robot: Include commons template', 'he':u'בוט: מוסיף תבנית Commons', - 'ja':u'ロボットによる: テンプレcommonscat追加', + 'ja':u'ロボットによる: テンプレcommons追加', 'zh':u'機器人: 增加commons模板', } comment2 = { 'en':u'Robot: Include commonscat template', 'he':u'בוט: מוסיף תבנית Commonscat', - 'ja':u'ロボットによる: テンプレcommons追加', + 'ja':u'ロボットによる: テンプレcommonscat追加', 'zh':u'機器人: 增加commonscat模板', }
Modified: trunk/pywikipedia/copyright.py =================================================================== --- trunk/pywikipedia/copyright.py 2008-01-13 16:57:32 UTC (rev 4867) +++ trunk/pywikipedia/copyright.py 2008-01-13 17:06:17 UTC (rev 4868) @@ -229,6 +229,8 @@ 'de': u'[Bearbeiten]', 'es,pt': u'[editar]', 'it': u'[modifica]', + 'ja': u'[編集]', + 'zh': u'[编辑]', }
sections_to_skip = {
Modified: trunk/pywikipedia/cosmetic_changes.py =================================================================== --- trunk/pywikipedia/cosmetic_changes.py 2008-01-13 16:57:32 UTC (rev 4867) +++ trunk/pywikipedia/cosmetic_changes.py 2008-01-13 17:06:17 UTC (rev 4868) @@ -46,11 +46,13 @@ 'es': u'Robot: Cambios triviales', 'fr': u'Robot : Changement de type cosmétique', 'he': u'בוט: שינויים קוסמטיים', + 'ja':u'ロボットによる: 細部の編集', 'ko': u'로봇: 예쁘게 바꿈', 'lt': u'robotas: smulkūs taisymai', 'nl': u'Bot: Cosmetische veranderingen', 'pl': u'Robot dokonuje poprawek kosmetycznych', 'pt': u'Bot: Mudanças triviais', + 'zh': u'機器人: 細部更改', }
# Summary message that will be appended to the normal message when @@ -61,11 +63,13 @@ 'es': u'; cambios triviales', 'fr': u'; changement de type cosmétique', 'he': u'; שינויים קוסמטיים', + 'ja':u'細部の編集', 'ko': u'; 예쁘게 바꿈', 'lt': u'; smulkūs taisymai', 'nl': u'; cosmetische veranderingen', 'pl': u'; zmiany kosmetyczne', 'pt': u'; mudanças triviais', + 'zh': u'; 細部更改', }
deprecatedTemplates = {
Modified: trunk/pywikipedia/fixes.py =================================================================== --- trunk/pywikipedia/fixes.py 2008-01-13 16:57:32 UTC (rev 4867) +++ trunk/pywikipedia/fixes.py 2008-01-13 17:06:17 UTC (rev 4868) @@ -25,12 +25,14 @@ 'de':u'Bot: konvertiere/korrigiere HTML', 'fr':u'Robot: convertit/fixe HTML', 'he':u'בוט: ממיר/מתקן HTML', + 'ja':u'ロボットによる: HTML転換', 'ia':u'Robot: conversion/reparation de HTML', 'lt':u'robotas: konvertuojamas/taisomas HTML', 'nl':u'Bot: conversie/reparatie HTML', 'pl':u'Robot konwertuje/naprawia HTML', 'pt':u'Bot: Corrigindo HTML', - 'sr':u'Бот: Поправка HTML-а' + 'sr':u'Бот: Поправка HTML-а', + 'zh':u'機器人: 轉換HTML', }, 'replacements': [ # Everything case-insensitive (?i) @@ -155,11 +157,13 @@ 'fr':u'Bot: Corrige wiki-syntaxe', 'he':u'בוט: מתקן תחביר ויקי', 'ia':u'Robot: Reparation de syntaxe wiki', + 'ja':u'ロボットによる: wiki構文修正', 'lt':u'robotas: Taisoma wiki sintaksė', 'nl':u'Bot: reparatie wikisyntaxis', 'pl':u'Robot poprawia wiki-składnię', 'pt':u'Bot: Corrigindo sintaxe wiki', 'sr':u'Бот: Поправка вики синтаксе', + 'zh':u'機器人: 修正wiki語法', }, 'replacements': [ # external link in double brackets @@ -222,11 +226,13 @@ 'fr':u'Bot: Corrige wiki-syntaxe', 'he':u'בוט: מתקן תחביר ויקי', 'ia':u'Robot: Reparation de syntaxe wiki', + 'ja':u'ロボットによる: wiki構文修正', 'lt':u'robotas: Taisoma wiki sintaksė', 'nl':u'Bot: reparatie wikisyntaxis', 'pl':u'Robot poprawia wiki-składnię', 'pt':u'Bot: Corrigindo sintaxe wiki', 'sr':u'Бот: Поправка вики синтаксе', + 'zh':u'機器人: 修正wiki語法', }, 'replacements': [ # external link in double brackets @@ -360,6 +366,8 @@ 'en': u'Robot: Fixing ISBN format', 'he': u'בוט: מתקן פורמט ISBN', 'es': u'Arreglando formato ISBN', + 'ja': u'ロボットによる: ISBNフォーマット修正', + 'zh': u'機器人: 修正ISBN格式', }, 'replacements': [ # colon
Modified: trunk/pywikipedia/fixing_redirects.py =================================================================== --- trunk/pywikipedia/fixing_redirects.py 2008-01-13 16:57:32 UTC (rev 4867) +++ trunk/pywikipedia/fixing_redirects.py 2008-01-13 17:06:17 UTC (rev 4868) @@ -23,8 +23,9 @@ msg = { 'en': u'Bot: Fixing redirects', 'he': u'בוט: מתקן הפניות', + 'ja': u'ロボットによる:リダイレクト回避', 'pt': u'Bot: Arrumando redirects', - 'zh': u'Bot: 修复重定向', + 'zh': u'機器人: 修復重定向', }
featured_articles = { @@ -34,6 +35,7 @@ 'es': u'Wikipedia:Artículos_destacados', 'fr': u'Wikipédia:Articles_de_qualité', 'it': u'Wikipedia:Articoli_in_vetrina', + 'ja': u'Wikipedia:秀逸な記事', 'nl': u'Wikipedia:Etalage', 'sv': u'Wikipedia:Utvalda_artiklar', 'pt': u'Wikipedia:Os_melhores_artigos',
Modified: trunk/pywikipedia/followlive.py =================================================================== --- trunk/pywikipedia/followlive.py 2008-01-13 16:57:32 UTC (rev 4867) +++ trunk/pywikipedia/followlive.py 2008-01-13 17:06:17 UTC (rev 4868) @@ -235,6 +235,43 @@ 'msg' : u'Robotkoll: Artikeln behöver wikifieras', 'pos' : 'top'}, }, + 'zh': { + '{{db-reason}}' :{ + 'msg' : '機器人掛上模板: 本文應被刪除。', + 'pos': 'top'}, + + '{{cleanup}}' :{ + 'msg' : 'Robot-assisted tagging: this article need cleanup', + 'pos': 'top'}, + + '{{stub}}':{ + 'msg' : 'Robot-assisted tagging: this article is a stub', + 'pos': 'bottom'}, + + '{{uncategorized}}' :{ + 'msg' : 'Robot-assisted tagging: This article needs to be [[Wikipedia:Categorization|categorized]]', + 'pos' : 'top'}, + + '{{notability}}':{ + 'msg' : 'Robot-assisted tagging: the [[Wikipedia:Notability|notability]] of this article is unclear.', + 'pos': 'top'}, + + '{{not verified}}':{ + 'msg' : 'Robot-assisted tagging: this article needs to be checked for factuality.', + 'pos': 'top'}, + + '{{copyedit}}':{ + 'msg' : 'Robot-assisted tagging: the writing of this article needs to be [[Wikipedia:How to copy-edit|copyedited]] and improved.', + 'pos' : 'top'}, + + '{{unreferenced}}':{ + 'msg' : 'Robot-assisted tagging: this article needs [[Wikipedia:Citing sources|references]] so it can be verified.', + 'pos': 'bottom'}, + + '{{wikify}}' :{ + 'msg' : 'Robot-assisted tagging: this article needs to be wikified per the [[Wikipedia:Manual of Style|Manual of Style]]', + 'pos' : 'top'}, + }, }
# Message used when blanking an article @@ -245,6 +282,7 @@ 'pl': u'wyczyszczony - zawartością było "%s"', 'pt': u'em branco - conteúdo é "%s"', 'sv': u'Robot tar bort innehåll på grund av "%s"', + 'zh': u'清空,之前的內容是 "%s"', }
# do nothing if this is in it
Modified: trunk/pywikipedia/noreferences.py =================================================================== --- trunk/pywikipedia/noreferences.py 2008-01-13 16:57:32 UTC (rev 4867) +++ trunk/pywikipedia/noreferences.py 2008-01-13 17:06:17 UTC (rev 4868) @@ -48,8 +48,10 @@ 'de':u'Bot: Trage fehlendes <references /> nach', 'en':u'Robot: Adding missing <references /> tag', 'he':u'בוט: מוסיף תגית <references /> חסרה', + 'ja':u'ロボットによる:失くした <references /> をタグ', 'lt':u'robotas: Pridedama trūkstama <references /> žymė', 'pt':u'Bot: Adicionando a tag <references />', + 'zh':u'機器人: 增加遺失的 <references /> 標籤', }
# References sections are usually placed before further reading / external @@ -71,6 +73,9 @@ u'See also', u'Notes' ], + 'ja':[ + u'外部リンク', + ], 'lt': [ # no explicit policy on where to put the references u'Nuorodos' ], @@ -79,6 +84,10 @@ u'Veja também', u'Notas', ], + 'zh':[ + u'外部連结', + u'外部链接', + ], }
# Titles of sections where a reference tag would fit into. @@ -99,6 +108,13 @@ 'he': [ u'הערות שוליים', ], + 'ja':[ + u'脚注', + u'脚注欄', + u'脚注・出典', + u'出典', + u'注釈', + ], 'lt': [ # not sure about which ones are preferred. u'Šaltiniai', u'Literatūra', @@ -107,6 +123,18 @@ u'Ligações externas', u'Veja também', ], + 'zh':[ + u'參考文獻', + u'参考文献', + u'參考資料', + u'参考资料', + u'資料來源', + u'资料来源', + u'參見', + u'参见', + u'參閱', + u'参阅', + ], }
# Templates which include a <references /> tag. If there is no such template @@ -114,7 +142,9 @@ referencesTemplates = { 'wikipedia': { 'en': [u'Reflist'], + 'ja': [u'Reflist'], 'lt': [u'Reflist', u'Ref', u'Litref'], + 'zh': [u'Reflist'], }, }
Modified: trunk/pywikipedia/nowcommons.py =================================================================== --- trunk/pywikipedia/nowcommons.py 2008-01-13 16:57:32 UTC (rev 4867) +++ trunk/pywikipedia/nowcommons.py 2008-01-13 17:06:17 UTC (rev 4868) @@ -60,6 +60,9 @@ 'he': [ u'גם בוויקישיתוף' ], + 'ja':[ + u'NowCommons', + ], 'ia': [ u'OraInCommons' ], @@ -74,13 +77,20 @@ 'ro': [ u'NowCommons' ], + 'zh':[ + u'NowCommons', + u'Nowcommons', + u'NCT', + ], }
namespaceInTemplate = [ 'en', 'ia', + 'ja', 'lt', 'ro', + 'zh', ]
Modified: trunk/pywikipedia/welcome.py =================================================================== --- trunk/pywikipedia/welcome.py 2008-01-13 16:57:32 UTC (rev 4867) +++ trunk/pywikipedia/welcome.py 2008-01-13 17:06:17 UTC (rev 4868) @@ -192,9 +192,10 @@ 'ar': u'Project:سجل الترحيب', 'de': None, # no welcome log on de.wiki 'en': u'Project:Welcome log', + 'fa': u'Project:سیاهه خوشامد', 'he': None, # no welcome log on he.wiki - 'fa': u'Project:سیاهه خوشامد', 'it': u'Project:Benvenuto log', + 'ja': u'利用者:Alexbot/Welcomebotログ', 'nl': u'Project:Logboek welkom', 'no': u'Project:Velkomstlogg', 'pt': None, # no welcome log on pt.wiki @@ -207,9 +208,10 @@ 'ar':u'مرحبا!', 'de':u'Herzlich willkommen!', 'en':u'Welcome!', + 'fa':u'خوش آمدید!', 'he':u'ברוך הבא!', - 'fa':u'خوش آمدید!', 'it':u'Benvenuto!', + 'ja':u'ウィキペディア日本語版へようこそ!', 'nl':u'Welkom!', 'no':u'Velkommen!', 'pt':u'Bem vindo!', @@ -224,9 +226,10 @@ 'ar':u'{{نسخ:مستخدم:Alnokta/ترحيب}} %s', 'de':u'{{subst:Hallo}} %s', 'en':u'{{subst:welcome}} %s', + 'fa':u'{{جا:خوشامد}} %s', 'he':u'{{ס:ברוך הבא}} %s', - 'fa':u'{{جا:خوشامد}} %s', 'it':u'{{Benvebot}} %s', + 'ja':u'{{subst:Welcome/intro}}\n{{welcome}} %s', 'nl':u'{{hola|bot|%s}}', 'no':u'{{subst:bruker:jhs/vk}} %s', 'pt':u'{{subst:bem vindo}} %s', @@ -241,6 +244,7 @@ 'en':u'Updating log', 'fa':u'به روز رسانی سیاهه', 'it':u'Aggiorno il log', + 'ja':u'更新記録', 'nl':u'Logboek bijwerken', 'no':u'Oppdaterer logg', 'sq':u'Rifreskoj log', @@ -254,6 +258,7 @@ 'en': u'Project:Administrator intervention against vandalism', 'fa': u'Project:تابلوی اعلانات مدیران/گزارش ربات', 'it': u'Utente:Filbot/Report', + 'ja': u'利用者:Alexbot/report', 'nl': u'Project:Verzoekpagina voor moderatoren/RegBlok/Te controleren gebruikersnamen', 'no': u'Bruker:JhsBot II/Rapport', 'sq': u'User:EagleBot/Report', @@ -266,9 +271,11 @@ 'en':u'Adding a username that needs to be checked', 'fa':u'افزودن حساب کاربری نیازمند بررسی', 'it':u'Aggiunto utente da controllare', + 'ja':u'不適切な利用者名の報告', 'nl':u'Te controleren gebruikersnaam toegevoegd', 'no':u'Legger til et brukernavn som m? sjekkes', 'sq':u'Added username to be checked', + 'zh':u'回報不適當的用戶名稱', } # The page where the bot reads the real-time bad words page # (this parameter is optional). @@ -278,6 +285,7 @@ 'en': u'Project:Welcome log/Bad_names', 'fa': u'Project:سیاهه خوشامد/نام بد', 'it': u'Utente:Filbot/Bad_words', + 'ja':u'Project:不適切な名前の利用者', 'nl': u'Project:Logboek_welkom/Bad_names', 'no': u'Bruker:JhsBot/Daarlige ord', 'sq': u'User:Eagleal/Bad_names', @@ -291,9 +299,11 @@ 'en':u'\n*{{Userlinks|%s}} ' + timeselected, 'fa':u'\n*{{کاربر|%s}}' + timeselected, 'it':u"\n{{Reported|%s|", + 'ja':u"\n*{{User2|%s}}" + timeselected, 'nl':u'\n*{{linkgebruiker%s}} ' + timeselected, 'no':u'\n*{{bruker|%s}} ' + timeselected, 'sq':u'\n*[[User:%s]] ' + timeselected, + 'zh':u"\n*{{User|%s}}" + timeselected } # Set where you load your list of signatures that the bot will load if you use # the random argument (this parameter is optional). @@ -302,6 +312,7 @@ 'fa': u'Project:سیاهه خوشامد/امضاها', 'en': u'User:Filnik/Sign', 'it': u'Project:Benvenuto log/User', + 'ja':u'利用者:Alexbot/Welcomebotログ/List', 'zh': u'user:Welcomebot/欢迎日志/用户', } # The page where the bot reads the real-time whitelist page. @@ -577,8 +588,8 @@
def main(settingsBot): # Taking the messages inside the function namespace. - global netext; global summary; global logbook; global summary2; global report_page; global project_inserted - global comment; global bad_pag; global report_text; global random_sign; global whitelist_pg + global netext, summary, logbook, summary2, report_page, project_inserted + global comment, bad_pag, report_text, random_sign, whitelist_pg
""" 0 1 2 3 4 5 6 7 8 9 10 11 @@ -587,9 +598,21 @@ recursive, savedata, sign, time_variable) """ # Loading the option of the mainSettings() - ask = settingsBot[1]; filename = settingsBot[2]; fileOption = settingsBot[3]; fileSignName = settingsBot[4]; filter_wp = settingsBot[5] - limit = settingsBot[6]; log_variable = settingsBot[7]; number = settingsBot[8]; numberlog = settingsBot[9]; offset_variable = settingsBot[10] - random = settingsBot[11]; recursive = settingsBot[12]; savedata = settingsBot[13]; sign = settingsBot[14]; time_variable = settingsBot[15] + ask = settingsBot[1] + filename = settingsBot[2] + fileOption = settingsBot[3] + fileSignName = settingsBot[4] + filter_wp = settingsBot[5] + limit = settingsBot[6] + log_variable = settingsBot[7] + number = settingsBot[8] + numberlog = settingsBot[9] + offset_variable = settingsBot[10] + random = settingsBot[11] + recursive = settingsBot[12] + savedata = settingsBot[13] + sign = settingsBot[14] + time_variable = settingsBot[15]
# The site wsite = wikipedia.getSite()