[Pywikipedia-l] SVN: [4786] trunk/pywikipedia

rotem at svn.wikimedia.org rotem at svn.wikimedia.org
Mon Dec 31 19:45:27 UTC 2007


Revision: 4786
Author:   rotem
Date:     2007-12-31 19:45:27 +0000 (Mon, 31 Dec 2007)

Log Message:
-----------
(patch 1860902) interface summary for sv and imagecheck zh information

Modified Paths:
--------------
    trunk/pywikipedia/category.py
    trunk/pywikipedia/catlib.py
    trunk/pywikipedia/checkimages.py
    trunk/pywikipedia/featured.py
    trunk/pywikipedia/redirect.py

Modified: trunk/pywikipedia/category.py
===================================================================
--- trunk/pywikipedia/category.py	2007-12-30 21:23:18 UTC (rev 4785)
+++ trunk/pywikipedia/category.py	2007-12-31 19:45:27 UTC (rev 4786)
@@ -89,6 +89,7 @@
     'is':u'Vélmenni: Bæti við [[Flokkur:%s]]',
     'it':u'Bot: Aggiungo [[Categoria:%s]]',
     'lt':u'robotas: Pridedama [[Kategorija:%s]]',
+    'ja':u'ロボットによる: カテゴリ追加 [[Category:%s]]',
     'kk':u'Бот: [[Санат:%s]] үстеді',
     'ko': u'로봇: [[분류:%s]] 추가',
     'nds':u'Kat-Bot: [[Kategorie:%s]] rin',
@@ -99,7 +100,7 @@
     'pt':u'Bot: Adicionando [[Categoria:%s]]',
     'sr':u'Бот: Додаје [[Категорија:%s]]',
     'sv':u'Robot: Lägger till [[Kategori:%s]]',
-    'zh':u'機器人:正在新增[[Category:%s]]',
+    'zh':u'機器人:正在新增目錄 [[Category:%s]]',
     }
 
 msg_change={
@@ -116,6 +117,7 @@
     'is':u'Vélmenni: Breyti flokknum [[%s]]',
     'it':u'Bot: Modifico %s',
     'lt':u'robotas: Keičiama %s',
+    'ja':u'ロボットによる: カテゴリ変更 [[Category:%s]]',
     'kk':u'Бот: %s дегенді түзетті',
     'ko': u'로봇: %s 수정',
     'nds':u'Kat-Bot: %s utwesselt',
@@ -126,7 +128,7 @@
     'pl':u'Robot przenosi %s',
     'sr':u'Бот: Измена категорије %s',
     'sv':u'Robot: Ändrar %s',
-    'zh':u'機器人:正在修改[[Category:%s]]',
+    'zh':u'機器人:正在變更目錄 [[Category:%s]]',
     }
 
 deletion_reason_move = {
@@ -139,6 +141,7 @@
     'ia':u'Robot: Categoria transferite a [[Category:%s|%s]]',
     'id':u'Bot: Kategori dipindahkan ke [[Category:%s|%s]]',
     'it':u'Bot: La categoria è stata sostituita da [[Categoria:%s|%s]]',
+    'ja':u'ロボットによる: カテゴリ [[Category:%s]]へ移動',
     'lt':u'robotas: Kategorija pervadinta į [[Category:%s|%s]]',
     'kk':u'Бот: Санат [[Санат:%s|%s]] дегенге жылжытылды',
     'ko': u'로봇: 분류가 [[분류:%s|%s]]로 옮겨짐',
@@ -150,7 +153,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]]',
+    'zh':u'機器人:正在移動目錄至 [[Category:%s]]',
     }
 
 cfd_templates = {

Modified: trunk/pywikipedia/catlib.py
===================================================================
--- trunk/pywikipedia/catlib.py	2007-12-30 21:23:18 UTC (rev 4785)
+++ trunk/pywikipedia/catlib.py	2007-12-31 19:45:27 UTC (rev 4786)
@@ -25,11 +25,12 @@
 msg_created_for_renaming = {
     'de':u'Bot: Verschoben von %s. Autoren: %s',
     'en':u'Robot: Moved from %s. Authors: %s',
+    'fr':u'Robot : déplacé depuis %s. Auteurs: %s',
+    'he':u'בוט: הועבר מהשם %s. כותבים: %s',
     'ia':u'Robot: Transferite de %s. Autores: %s',
     'id':u'Bot: Memindahkan dari %s. Kontributor: %s',
     'it':u'Bot: Voce spostata da %s. Autori: %s',
-    'fr':u'Robot : déplacé depuis %s. Auteurs: %s',
-    'he':u'בוט: הועבר מהשם %s. כותבים: %s',
+    'ja': u'ロボットによる: %s から移動しました。原作者は %s',
     'nl':u'Bot: hernoemd van %s. Auteurs: %s',
     'pl':u'Robot przenosi z %s. Autorzy: %s',
     'pt':u'Bot: Movido de %s. Autor: %s',

Modified: trunk/pywikipedia/checkimages.py
===================================================================
--- trunk/pywikipedia/checkimages.py	2007-12-30 21:23:18 UTC (rev 4785)
+++ trunk/pywikipedia/checkimages.py	2007-12-31 19:45:27 UTC (rev 4786)
@@ -80,16 +80,18 @@
 # 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}}',
-	'en'     :'\n{{subst:nld}}',
-	'it'     :'\n{{subst:unverdata}}',
-	'hu'     :u'\n{{nincslicenc|~~~~~}}',
-	}
+    'en'     :'\n{{subst:nld}}',
+    'it'     :'\n{{subst:unverdata}}',
+    'hu'     :u'\n{{nincslicenc|~~~~~}}',
+    'zh'    :'{{subst:no source/auto}}',
+}
 
 txt_find =  {
-	'commons':['{{no license', '{{nld'],
+    'commons':['{{no license', '{{nld'],
         'en':['{{nld', '{{no license'],
-	'it':['{{unverdata', '{{unverified'],
-	'hu':[u'{{nincsforrás',u'{{nincslicenc'],
+    'it':['{{unverdata', '{{unverified'],
+    'hu':[u'{{nincsforrás',u'{{nincslicenc'],
+    'zh':['{{no source','{{unknown'],
                 }
 
 # Summary for when the will add the no source
@@ -98,6 +100,7 @@
 		'en'     :'Bot: Marking newly uploaded untagged file',
 		'it'     :"Bot: Aggiungo unverified",
 		 'hu'    :'Robot: Frissen feltöltött licencsablon nélküli fájl megjelölése',
+		 'zh':u'機器人:標示新上傳且未有任何資訊的檔案',
 		}
 
 # Summary that the bot use when it notify the problem with the image's license
@@ -106,6 +109,7 @@
 		'en'     :"Bot: Requesting source information." ,
 		'it'     :"Bot: Notifico l'unverified",
 		'hu'     :'Robot: Forrásinformáció kérése',
+		'zh'     :u"機器人: 正在請求來源資訊"
 		}
 
 # When the Bot find that the usertalk is empty is not pretty to put only the no source without the welcome, isn't it?
@@ -114,6 +118,7 @@
 		'en'     :'{{welcome}}\n~~~~\n',
 		'it'     :'{{benvenuto}}\n~~~~\n',
 		'hu'     :u'{{subst:Üdvözlet|~~~~}}\n',
+		'zh':'{{subst:welcome|sign=~~~~}}',
 		}
 
 # General summary
@@ -122,6 +127,7 @@
 		'en'     :'Bot: no source',
 		'it'     :'Bot: Unverified!',
 		'hu'     :'Robot: nincs forrás',
+		'zh':u'機器人:沒有來源資訊',
 		}
 
 # if the file has an unknown extension it will be tagged with this template.
@@ -131,6 +137,7 @@
 			'en'     :"{{db-meta|The file has .%s as extension.}}",
 			'it'     :'{{cancella subito|motivo=Il file ha come estensione ".%s"}}',
 			'hu'     :u'{{azonnali|A fájlnak .%s a kiterjesztése}}',
+			'zh'    :u'{{delete|未知檔案格式',
 			}
 
 # The header of the Unknown extension's message.
@@ -139,6 +146,7 @@
 			'en'     :"\n== Unknown extension! ==\n",
 			'it'     :'\n== File non specificato ==\n',
 			'hu'     :u'\n== Ismeretlen kiterjesztésű fájl ==\n',
+			'zh':u'\n==您上載的檔案格式可能有誤==\n',
 			}
 
 # Text that will be add if the bot find a unknown extension.
@@ -147,6 +155,7 @@
 				'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. ~~~~',
+				'zh'    :u'您好,你上傳的[[:Image:%s]]無法被識別,請檢查您的檔案,謝謝。--~~~~',
 				}
 # Summary of the delate immediately. (f.e: Adding {{db-meta|The file has .%s as extension.}})
 del_comm = {
@@ -154,6 +163,7 @@
 			'en'     :'Bot: Adding %s',
 			'it'     :'Bot: Aggiungo %s',
 			'hu'     :u'Robot:"%s" hozzáadása',
+			'zh'     :u'機器人: 正在新增 %s',
 			}
 
 # This is the most important header, because it will be used a lot. That's the header that the bot
@@ -163,6 +173,7 @@
 				'en'     :"\n== Image without license ==\n",
 				'it'     :"\n== Immagine senza licenza ==\n",
 				'hu'     :u"\n== Licenc nélküli kép ==\n",
+				'zh'    :None,
 				}
 # That's the text that the bot will add if it doesn't find the license.
 nothing_notification = {
@@ -170,6 +181,7 @@
 				'en'     :"{{subst:image source|Image:%s}} --~~~~",
 				'it'     :"{{subst:Utente:Filbot/Senza licenza|%s}} --~~~~",
 				'hu'     :u"{{subst:adjforrást|Kép:%s}} \n Ezt az üzenetet ~~~ automatikusan helyezte el a vitalapodon, kérdéseddel fordulj a gazdájához, vagy a [[WP:KF|Kocsmafalhoz]]. --~~~~",
+				'zh'   :u'{{subst:Uploadvionotice|Image:%s}} ~~~~ ',
 				}
 # This is a list of what bots used this script in your project.
 # NOTE: YOUR Botnick is automatically added. It's not required to add it twice.
@@ -177,6 +189,7 @@
 			'commons':['Siebot', 'CommonsDelinker'],
 			'en'     :['OrphanBot'],
 			'it'     :['Filbot', 'Nikbot', '.snoopyBot.'],
+			'zh':['alexbot'],
 			}
 
 # The message that the bot will add the second time that find another license problem.
@@ -185,6 +198,7 @@
                                 '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 --~~~~',
+				'zh':None,
 				}
 # You can add some settings to wikipedia. In this way, you can change them without touch the code.
 # That's useful if you are running the bot on Toolserver.
@@ -193,6 +207,7 @@
                                         'en':None,
                                         'hu':None,
 					'it':'Utente:Nikbot/Settings#Settings',
+					'zh':None,
 					}
 # The bot can report some images (like the images that have the same name of an image on commons)
 # This is the page where the bot will store them.
@@ -201,6 +216,7 @@
                                 'en'     :'User:Filnik/Report',
 				'it'     :'Utente:Nikbot/Report',
 				'hu'     :'User:Bdamokos/Report',
+				'zh'    :u'User:Alexsh/checkimagereport',
 				}
 # Adding the date after the signature. 
 timeselected = u' ~~~~~'
@@ -210,6 +226,7 @@
 			'en':"\n*[[:Image:%s]] " + timeselected,
 			'it':"\n*[[:Immagine:%s]] " + timeselected,
 			'hu':u"\n*[[:Kép:%s]] " + timeselected,
+			'zh':"\n*[[:Image:%s]] " + timeselected,
 			}
 # The summary of the report
 comm10 = {
@@ -217,6 +234,7 @@
 		'en':'Bot: Updating the log',
 		'it':'Bot: Aggiorno il log',
 		'hu': 'Robot: A napló frissítése',
+		'zh': u'機器人:更新記錄',
 		}
 
 # If a template isn't a license but it's included on a lot of images, that can be skipped to
@@ -229,10 +247,11 @@
 		'en':['information'],
 		'it':['edp', 'informazioni[ _]file', 'information'],
 		'hu':[u'információ','enwiki', 'azonnali'],
+		'zh':[u'information'],
 		}
 
 # Add your project (in alphabetical order) if you want that the bot start
-project_inserted = ['commons', 'en','hu', 'it']
+project_inserted = ['commons', 'en','hu', 'it','zh']
 
 # Ok, that's all. What is below, is the rest of code, now the code is fixed and it will run correctly in your project.
 #########################################################################################################################

Modified: trunk/pywikipedia/featured.py
===================================================================
--- trunk/pywikipedia/featured.py	2007-12-30 21:23:18 UTC (rev 4785)
+++ trunk/pywikipedia/featured.py	2007-12-31 19:45:27 UTC (rev 4786)
@@ -62,6 +62,7 @@
     'pl': u'Bot: Link do artykułu wyróżnionego [[%s:%s]]',
     'pt': u'Bot: Ligando artigos destacados para [[%s:%s]]',
     'sr': u'Bot: Међувики за изабране чланке за [[%s:%s]]',
+    'sv': u'Bot: [[%s:%s]] är en utmärkt artikel',
     'th': u'บอต: ลิงก์บทความคัดสรร [[%s:%s]]',
     'vo': u'Bot: Yüm yegeda gudik tefü [[%s:%s]]',
     'zh': u'機器人: 連結特色條目 [[%s:%s]]',
@@ -149,6 +150,7 @@
     'ro': (CAT, u"Categorie:Articole de calitate"),
     'ru': (CAT, u"Категория:Википедия:Избранные статьи"),
     'sh': (CAT, u"Category:Izabrani članci"),
+    'simple': (BACK, u"template:vgood-large"),
     'sk': (BACK, u"Šablóna:Perfektný článok"),
     'sl': (CAT, u"Category:Izbrani članki"),
     'sq': (BACK, u"Template:Perfekt"),

Modified: trunk/pywikipedia/redirect.py
===================================================================
--- trunk/pywikipedia/redirect.py	2007-12-30 21:23:18 UTC (rev 4785)
+++ trunk/pywikipedia/redirect.py	2007-12-31 19:45:27 UTC (rev 4786)
@@ -65,6 +65,7 @@
     'pt': u'Bot: Corrigido duplo redirecionamento',
     'ru': u'Робот: исправление двойного перенаправления',
     'sr': u'Бот: Поправка дуплих преусмерења',
+    'sv': u'Robot: Rättar dubbel omdirigering',
     'th': u'โรบอต: แก้หน้าเปลี่ยนทางซ้ำซ้อน',
     'tr': u'Bot değişikliği: Yönlendirmeye olan yönlendirme',
     'zh': u'機器人:修正雙重重定向',





More information about the Pywikipedia-l mailing list