Revision: 4711 Author: rotem Date: 2007-12-15 12:45:27 +0000 (Sat, 15 Dec 2007)
Log Message: ----------- (patch 1850275) message tranalation update
Modified Paths: -------------- trunk/pywikipedia/blockpageschecker.py trunk/pywikipedia/capitalize_redirects.py trunk/pywikipedia/catall.py trunk/pywikipedia/category.py trunk/pywikipedia/catlib.py trunk/pywikipedia/commons_link.py trunk/pywikipedia/redirect.py trunk/pywikipedia/replace.py
Modified: trunk/pywikipedia/blockpageschecker.py =================================================================== --- trunk/pywikipedia/blockpageschecker.py 2007-12-14 16:23:44 UTC (rev 4710) +++ trunk/pywikipedia/blockpageschecker.py 2007-12-15 12:45:27 UTC (rev 4711) @@ -52,21 +52,30 @@ r'{{(?:[Tt]emplate:|[Mm]odèle:|)[Ss]emi[- ]?protection}}' ], 'it':[r'{{(?:[Tt]emplate:|)[Aa]vvisobloccoparziale(?:|[ _]scad|(.*?))}}', r'{{(?:[Tt]emplate:|)[Aa]vvisoblocco(?:|[ _]scad|(?:.*?))}}'], + 'ja':[r'{{(?:[Tt]emplate:|)(?:半|移動|移動半|)保護(?:S|)}}',], + 'zh':[r'{{(?:[Tt]emplate:|)Protected(?:|*)}}',r'{{(?:[Tt]emplate:|)Mini-protected(?:|*)}}', + r'{{(?:[Tt]emplate:|)Protected logo(?:|*)}}'], } # Category where the bot will check categoryToCheck = { 'en':[u'Category:Protected'], 'fr':[u'Category:Page semi-protégée', u'Category:Page protégée'], 'it':[u'Categoria:Pagine semiprotette', u'Categoria:Voci_protette'], + 'ja':[u'Category:編集保護中の記事',u'Category:編集半保護中の記事', + u'Category:移動保護中の記事',], + 'zh':[u'Category:被保护的页面',u'Category:被保護的模板',u'Category:暂时不能移动的页面', + u'Category:被半保护的页面',], } # Comment used when the Bot edits comment = { 'en':u'Bot: Deleting out-dated template', 'fr':u'Robot: Retrait du bandeau protection/semi-protection d'une page qui ne l'es plus', 'it':u'Bot: Tolgo template di avviso blocco scaduto', + 'ja':u'ロボットによる: 保護テンプレート削除', + 'zh':u'機器人: 移除過期的保護模板', } # Check list to block the users that haven't set their preferences -project_inserted = ['en', 'fr', 'it'] +project_inserted = ['en', 'fr', 'it', 'ja', 'zh']
####################################################### #------------------ END PREFERENCES ------------------#
Modified: trunk/pywikipedia/capitalize_redirects.py =================================================================== --- trunk/pywikipedia/capitalize_redirects.py 2007-12-14 16:23:44 UTC (rev 4710) +++ trunk/pywikipedia/capitalize_redirects.py 2007-12-15 12:45:27 UTC (rev 4711) @@ -44,6 +44,7 @@ 'fr': u'robot: créez redirect à [[%s]]', 'he': u'בוט: יוצר הפניה לדף [[%s]]', 'pt': u'Bot: Criando redirecionamento para [[%s]]', + 'zh': u'機器人: 建立重定向至[[%s]]', }
class CapitalizeBot:
Modified: trunk/pywikipedia/catall.py =================================================================== --- trunk/pywikipedia/catall.py 2007-12-14 16:23:44 UTC (rev 4710) +++ trunk/pywikipedia/catall.py 2007-12-15 12:45:27 UTC (rev 4711) @@ -28,11 +28,13 @@ 'fr':u'Bot: Change categories', 'he':u'בוט: משנה קטגוריות', 'ia':u'Bot: Alteration de categorias', + 'ja':u'ロボットによる: カテゴリ変更', 'lt':u'robotas: Keičiamos kategorijos', 'nl':u'Bot: Verandering van categorieen', 'pl':u'Bot: Zmiana kategorii', 'pt':u'Bot: Categorizando', 'sr':u'Bot: Измена категорија', + 'zh':u'機器人: 更改分類', }
def choosecats(pagetext):
Modified: trunk/pywikipedia/category.py =================================================================== --- trunk/pywikipedia/category.py 2007-12-14 16:23:44 UTC (rev 4710) +++ trunk/pywikipedia/category.py 2007-12-15 12:45:27 UTC (rev 4711) @@ -99,6 +99,7 @@ 'pt':u'Bot: Adicionando [[Categoria:%s]]', 'sr':u'Бот: Додаје [[Категорија:%s]]', 'sv':u'Robot: Lägger till [[Kategori:%s]]', + 'zh':u'機器人:正在新增[[Category:%s]]', }
msg_change={ @@ -125,6 +126,7 @@ 'pl':u'Robot przenosi %s', 'sr':u'Бот: Измена категорије %s', 'sv':u'Robot: Ändrar %s', + 'zh':u'機器人:正在修改[[Category:%s]]', }
deletion_reason_move = { @@ -148,6 +150,7 @@ 'pl':u'Robot przenosi kategorię do [[Category:%s|%s]]', 'sr':u'Бот: Категорија премештена у [[Category:%s|%s]]', 'sv':u'Robot: Kategori flyttades till [[Category:%s|%s]]', + 'zh':u'機器人:正在移動到[[Category:%s]]', }
cfd_templates = {
Modified: trunk/pywikipedia/catlib.py =================================================================== --- trunk/pywikipedia/catlib.py 2007-12-14 16:23:44 UTC (rev 4710) +++ trunk/pywikipedia/catlib.py 2007-12-15 12:45:27 UTC (rev 4711) @@ -33,6 +33,7 @@ 'nl':u'Bot: hernoemd van %s. Auteurs: %s', 'pl':u'Robot przenosi z %s. Autorzy: %s', 'pt':u'Bot: Movido de %s. Autor: %s', + 'zh':u'機器人: 已從 %s 移動。原作者是 %s', }
# some constants that are used internally
Modified: trunk/pywikipedia/commons_link.py =================================================================== --- trunk/pywikipedia/commons_link.py 2007-12-14 16:23:44 UTC (rev 4710) +++ trunk/pywikipedia/commons_link.py 2007-12-15 12:45:27 UTC (rev 4711) @@ -37,12 +37,16 @@ import re
comment1 = { - 'en':'Robot: Include commons template', + 'en':u'Robot: Include commons template', 'he':u'בוט: מוסיף תבנית Commons', + 'ja':u'ロボットによる: テンプレcommonscat追加', + 'zh':u'機器人: 增加commons模板', } comment2 = { - 'en':'Robot: Include commonscat template', + 'en':u'Robot: Include commonscat template', 'he':u'בוט: מוסיף תבנית Commonscat', + 'ja':u'ロボットによる: テンプレcommons追加', + 'zh':u'機器人: 增加commonscat模板', }
class CommonsLinkBot:
Modified: trunk/pywikipedia/redirect.py =================================================================== --- trunk/pywikipedia/redirect.py 2007-12-14 16:23:44 UTC (rev 4710) +++ trunk/pywikipedia/redirect.py 2007-12-15 12:45:27 UTC (rev 4711) @@ -68,6 +68,7 @@ 'tr': u'Bot değişikliği: Yönlendirmeye olan yönlendirme', 'zh': u'機器人:修正雙重重定向', 'zh-yue': u'機械人:拉直連串跳轉 ', + 'zh-classical': u'僕:復修渡口', }
# Reason for deleting broken redirects
Modified: trunk/pywikipedia/replace.py =================================================================== --- trunk/pywikipedia/replace.py 2007-12-14 16:23:44 UTC (rev 4710) +++ trunk/pywikipedia/replace.py 2007-12-15 12:45:27 UTC (rev 4711) @@ -142,6 +142,7 @@ 'pl':u'Robot automatycznie zamienia tekst %s', 'pt':u'Bot: Mudança automática %s', 'sr':u'Бот: Аутоматска замена текста %s', + 'zh': u'機器人:執行文字代換作業 %s', }
class XmlDumpReplacePageGenerator:
pywikipedia-l@lists.wikimedia.org