Revision: 4950 Author: warddr Date: 2008-01-30 15:48:24 +0000 (Wed, 30 Jan 2008)
Log Message: ----------- bugfix [ 1882682 ] zh locale update - submitted by Alex S.H. Lin - lin4h
Modified Paths: -------------- trunk/pywikipedia/followlive.py trunk/pywikipedia/lonelypages.py trunk/pywikipedia/speedy_delete.py trunk/pywikipedia/standardize_interwiki.py
Modified: trunk/pywikipedia/followlive.py =================================================================== --- trunk/pywikipedia/followlive.py 2008-01-30 12:19:31 UTC (rev 4949) +++ trunk/pywikipedia/followlive.py 2008-01-30 15:48:24 UTC (rev 4950) @@ -236,41 +236,49 @@ 'pos' : 'top'}, }, 'zh': { - '{{db-reason}}' :{ - 'msg' : '機器人掛上模板: 本文應被刪除。', + u'{{db-reason}}' :{ + 'msg' : u'機器人掛上模板: 本文應被刪除。', 'pos': 'top'},
- '{{cleanup}}' :{ - 'msg' : 'Robot-assisted tagging: this article need cleanup', + u'{{subst:Cleanup/auto}}' :{ + 'msg' : u'機器人掛上模板: 本文需清理', 'pos': 'top'},
- '{{stub}}':{ - 'msg' : 'Robot-assisted tagging: this article is a stub', - 'pos': 'bottom'}, + u'{{uncategorized}}' :{ + 'msg' : u'機器人掛上模板: 本頁需要適當的頁面分類', + 'pos' : u'top'},
- '{{uncategorized}}' :{ - 'msg' : 'Robot-assisted tagging: This article needs to be [[Wikipedia:Categorization|categorized]]', - 'pos' : 'top'}, + u'{{notability}}':{ + 'msg' : u'機器人掛上模板: 本條目主題未突顯其知名度或顯著性', + 'pos': 'top'},
- '{{notability}}':{ - 'msg' : 'Robot-assisted tagging: the [[Wikipedia:Notability|notability]] of this article is unclear.', + u'{{Refimprove}}':{ + 'msg' : u'機器人掛上模板: 本條目需要補充參考或來源', 'pos': 'top'},
- '{{not verified}}':{ - 'msg' : 'Robot-assisted tagging: this article needs to be checked for factuality.', + u'{{copyedit}}':{ + 'msg' : u'機器人掛上模板: 本條目或段落需要校對', + 'pos' : 'top'}, + + u'{{subst:Unreferenced/auto}}':{ + 'msg' : u'機器人掛上模板: 本條目沒有列出任何參考或來源', 'pos': 'top'},
- '{{copyedit}}':{ - 'msg' : 'Robot-assisted tagging: the writing of this article needs to be [[Wikipedia:How to copy-edit|copyedited]] and improved.', + u'{{wikify}}' :{ + 'msg' : u'機器人掛上模板: 本條目需要維基化', 'pos' : 'top'},
- '{{unreferenced}}':{ - 'msg' : 'Robot-assisted tagging: this article needs [[Wikipedia:Citing sources|references]] so it can be verified.', - 'pos': 'bottom'}, + u'{{subst:Notchinese/auto}}':{ + 'msg' : u'機器人掛上模板: 翻譯中條目', + 'pos' : 'top'},
- '{{wikify}}' :{ - 'msg' : 'Robot-assisted tagging: this article needs to be wikified per the [[Wikipedia:Manual of Style|Manual of Style]]', + u'{{subst:Substub/auto}}' :{ + 'msg' : u'機器人掛上模板: 小小作品', 'pos' : 'top'}, + + u'{{stub}}':{ + 'msg' : u'機器人掛上模板: 本文是小作品', + 'pos': 'bottom'}, }, }
@@ -307,6 +315,7 @@ 'pl':('{{ek}}', u'{{dopracować}}', '{{linki}}', u'{{źródła}}', u'{{stub}}'), 'pt':('{{wikificar}}', '{{reciclar}}', '{{lixo}}', u'{{revisão}}', u'{{impróprio}}', u'{{apagar vaidade}}'), 'sv':(u'{{radera', u'{{Radera', u'{{städa}}', u'{{stub}}', u'{{verifieras}}', u'{{språkvård}}', u'{{Källor', u'{{källor', u'{{wikify}}', u'{{Ickewiki}}', u'{{ickewiki}}', u'{{Wikify}}'), + 'zh':(u'{{VfD}}',u'{{AfD}}',u'{{unreferenced}}',u'{{db-reason}}',u'{{cleanup}}',u'{{stub}}',u'{{uncategorized}}',u'{{notability}}',u'{{Refimprove}}',u'{{copyedit}}',u'{{unreferenced}}',u'{{wikify}}',u'{{Substub}}',), }
# TODO: merge 'done' with 'templates' above @@ -441,7 +450,7 @@ # Generate the question text i = 0 questions = '\n' -questionlist = {} +questionlist = {} for t in wikipedia.translate(wikipedia.getSite(), templates): i+=1 questions += ( u'%s) %s\n' % (i,t) )
Modified: trunk/pywikipedia/lonelypages.py =================================================================== --- trunk/pywikipedia/lonelypages.py 2008-01-30 12:19:31 UTC (rev 4949) +++ trunk/pywikipedia/lonelypages.py 2008-01-30 15:48:24 UTC (rev 4950) @@ -65,12 +65,14 @@ Template = { 'en':u'{{Orphan|date={{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}}}', 'it':u'{{O||mese={{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}}}', + 'zh':u'{{subst:Orphan/auto}}', }
# Comment that the Bot will use to put the template commento = { - 'en':u'Bot: Orphan page, add template', - 'it':u'Bot: Voce orfana, aggiungo template {{O}}', + 'en':u'Bot: Orphan page, add template', + 'it':u'Bot: Voce orfana, aggiungo template {{O}}', + 'zh':u'???: ?????????', }
# When you add a disambig to the list of disambig pages @@ -78,6 +80,7 @@ commenttodisambig = { 'en':u'Bot: Adding a disambig page', 'it':u'Bot: Aggiungo una disambigua', + 'zh':u'???: ???????', }
# Use regex to prevent to put the same template twice! @@ -86,6 +89,7 @@ exception = { 'en': [r'{{(?:template:|)(orphan)[|}]', r'{{(?:template:|)(wi)[|}]'], 'it': [r'{{(?:template:|)(o)[|}]'], + 'zh': [r'{{(?:template:|)(orphan)[|}]'], }
# ************* Modify only above! ************* #
Modified: trunk/pywikipedia/speedy_delete.py =================================================================== --- trunk/pywikipedia/speedy_delete.py 2008-01-30 12:19:31 UTC (rev 4949) +++ trunk/pywikipedia/speedy_delete.py 2008-01-30 15:48:24 UTC (rev 4950) @@ -125,6 +125,7 @@ u'No source':u'[[WP:CSD#I3|CSD I3]]: 沒有來源', u'No license':u'[[WP:CSD#I3|CSD I3]]: 沒有版權資訊', u'Unknown':u'[[WP:CSD#I3|CSD I3]]: 沒有版權資訊', + u'TempPage':u'[[WP:CSD]]: 臨時頁面', u'NowCommons':u'[[WP:CSD#I7|CSD I7]]: 被[[:commons:|維基共享資源]]取代的圖片', }, } @@ -187,6 +188,7 @@ 'nls':u'[[WP:CSD#I3|CSD I3]]: 沒有版權資訊', 'ui':u'[[WP:CSD#I6|CSD I6]]: 圖片未使用且不自由', 'uc':u'[[WP:CSD#O4|CSD O4 O5]]: 空類別', + 'tmp':u'[[WP:CSD]]: 臨時頁面', }, # There's a template for nearly every possible reason on en:. # If the bot can't guess the reason from the template, the user should
Modified: trunk/pywikipedia/standardize_interwiki.py =================================================================== --- trunk/pywikipedia/standardize_interwiki.py 2008-01-30 12:19:31 UTC (rev 4949) +++ trunk/pywikipedia/standardize_interwiki.py 2008-01-30 15:48:24 UTC (rev 4950) @@ -25,10 +25,12 @@ 'de':u'Bot: Interwikilinks standardisieren', 'en':u'Robot: interwiki standardization', 'he':u'בוט: מסדר את האינטרוויקי', + 'it':u'Bot: Standardizzo interwiki', + 'ja':u'ロボットによる: 言語間リンクを標準化', 'no':u'bot: Språklenkestandardisering', - 'it':u'Bot: Standardizzo interwiki', 'ksh':u'Bot: Engerwiki Lengks opprüühme', 'nds':u'Bot: Links twüschen Wikis standardisseern', + 'zh':u'機器人: 跨語連結標準化', } site = wikipedia.getSite() comm = wikipedia.translate(site, comment)