Revision: 5355
Author: nicdumz
Date: 2008-05-11 08:45:24 +0000 (Sun, 11 May 2008)
Log Message:
-----------
Feature request #1961722 "some translation (ko, Korean) - reflinks.py, noreference.py". Thanks to nokymacha :)
Modified Paths:
--------------
trunk/pywikipedia/noreferences.py
trunk/pywikipedia/reflinks.py
Modified: trunk/pywikipedia/noreferences.py
===================================================================
--- trunk/pywikipedia/noreferences.py 2008-05-11 08:16:46 UTC (rev 5354)
+++ trunk/pywikipedia/noreferences.py 2008-05-11 08:45:24 UTC (rev 5355)
@@ -50,6 +50,7 @@
'en':u'Robot: Adding missing <references /> tag',
'he':u'בוט: מוסיף תגית <references /> חסרה',
'ja':u'ロボットによる: <references /> タグを追加。',
+ 'ko':u'봇: 이전에 없던 <references /> 추가',
'lt':u'robotas: Pridedama trūkstama <references /> žymė',
'pt':u'Bot: Adicionando a tag <references />',
'zh':u'機器人: 增加遺失的 <references /> 標籤',
@@ -92,6 +93,16 @@
'ja':[
u'外部リンク',
],
+ 'ko':[ # no explicit policy on where to put the references
+ u'외부 링크',
+ u'외부링크',
+ u'바깥 고리',
+ u'바깥고리',
+ u'바깥 링크',
+ u'바깥링크'
+ u'외부 고리',
+ u'외부고리'
+ ],
'lt': [ # no explicit policy on where to put the references
u'Nuorodos'
],
@@ -147,6 +158,13 @@
u'出典',
u'注釈',
],
+ 'ko':[ #
+ u'주석',
+ u'각주'
+ u'주석 및 참고 자료'
+ u'주석 및 참고자료',
+ u'주석 및 참고 출처'
+ ],
'lt': [ # not sure about which ones are preferred.
u'Šaltiniai',
u'Literatūra',
@@ -180,6 +198,7 @@
'fr': [u'Références',u'Notes', u'References', u'Reflist'],
'hu': [u'reflist'],
'ja': [u'Reflist'],
+ 'ko': [u'주석', u'Reflist'],
'lt': [u'Reflist', u'Ref', u'Litref'],
'zh': [u'Reflist'],
},
Modified: trunk/pywikipedia/reflinks.py
===================================================================
--- trunk/pywikipedia/reflinks.py 2008-05-11 08:16:46 UTC (rev 5354)
+++ trunk/pywikipedia/reflinks.py 2008-05-11 08:45:24 UTC (rev 5355)
@@ -44,22 +44,26 @@
stopPage = {'fr':u'Utilisateur:DumZiBoT/EditezCettePagePourMeStopper',
'de':u'Benutzer:DumZiBoT/EditThisPageToStopMe',
'it':u'Utente:DumZiBoT/EditThisPageToStopMe',
+ 'ko':u'사용자:GrassnBreadRefBot/EditThisPageToStopMe1',
'hu':'User:Damibot/EditThisPageToStopMe',
'en':u'User:DumZiBoT/EditThisPageToStopMe'}
msg = { 'fr':u'Bot: Correction des refs. mal formatées (cf. [[Utilisateur:DumZiBoT/liensRefs|explications]])',
'de':u'Bot: Korrektes Referenzformat (siehe [[:en:User:DumZiBoT/refLinks]])',
'hu':u'Robot: Forráshivatkozások kibővítése a hivatkozott oldal címével',
+ 'ko':u'봇: url만 있는 주석을 보강, (영문)[[:en:User:DumZiBoT/refLinks]] 참조',
'en':u'Bot: Converting bare references, see [[User:DumZiBoT/refLinks|FAQ]]'}
deadLinkTag = {'fr':u'{{lien mort}}',
'de':u'',
'hu':u'{{halott link}}',
+ 'ko':u'{{죽은 바깥 고리}}',
'en':u'{{dead link}}'}
comment = {'fr':u'Titre généré automatiquement',
'de':u'Automatisch generierter titel',
'hu':u'Robot generálta cím',
+ 'ko':u'봇이 따온 제목',
'en':u'Bot generated title'}
soft404 = re.compile(ur'\D404(\D|\Z)|error|errdoc|Not.{0,3}Found|sitedown|eventlog', re.IGNORECASE)
@@ -424,6 +428,9 @@
elif u'.jp' in ref.link:
enc.append("shift jis 2004")
enc.append("cp932")
+ elif u'.kr' in ref.link:
+ enc.append("euc-kr")
+ enc.append("cp949")
elif u'.zh' in ref.link:
enc.append("gbk")