Revision: 7839
Author: xqt
Date: 2009-12-28 17:30:12 +0000 (Mon, 28 Dec 2009)
Log Message:
-----------
revert r7835: page must be preloaded for this test
Modified Paths:
--------------
trunk/pywikipedia/interwiki.py
Modified: trunk/pywikipedia/interwiki.py
===================================================================
--- trunk/pywikipedia/interwiki.py 2009-12-28 17:19:09 UTC (rev 7838)
+++ trunk/pywikipedia/interwiki.py 2009-12-28 17:30:12 UTC (rev 7839)
@@ -1924,9 +1924,10 @@
if page.isTalkPage():
pywikibot.output(u'Skipping: %s is a talk page' % page.title())
continue
- if page.isEmpty():
- pywikibot.output(u'Skipping: %s is a empty page' % page.title())
- continue
+ #doesn't work: page must be preloaded for this test
+ #if page.isEmpty():
+ # pywikibot.output(u'Skipping: %s is a empty page' % page.title())
+ # continue
if page.namespace() == 10:
loc = None
try:
Revision: 7837
Author: xqt
Date: 2009-12-28 16:59:04 +0000 (Mon, 28 Dec 2009)
Log Message:
-----------
use interwiki_text_separator from family-file
Modified Paths:
--------------
trunk/pywikipedia/cosmetic_changes.py
Modified: trunk/pywikipedia/cosmetic_changes.py
===================================================================
--- trunk/pywikipedia/cosmetic_changes.py 2009-12-28 11:51:02 UTC (rev 7836)
+++ trunk/pywikipedia/cosmetic_changes.py 2009-12-28 16:59:04 UTC (rev 7837)
@@ -332,7 +332,7 @@
text = text + '\r\n\r\n' + nn_iw_msg
# Adding stars templates
if allstars != []:
- text = text.strip()+'\r\n\r\n'
+ text = text.strip()+self.site.family.interwiki_text_separator
allstars.sort()
for element in allstars:
text += '%s\r\n' % element.strip()
@@ -357,7 +357,7 @@
continue
namespaces = list(family.namespace(self.site.lang, nsNumber, all = True))
thisNs = namespaces.pop(0)
- if nsNumber == 6 and self.site.family.name == 'wikipedia' and \
+ if nsNumber == 6 and family.name == 'wikipedia' and \
self.site.lang in ('en', 'fr'):
# do not change "Image" on en-wiki and fr-wiki
for image in [u'Image', u'image']:
Revision: 7833
Author: xqt
Date: 2009-12-28 09:24:21 +0000 (Mon, 28 Dec 2009)
Log Message:
-----------
update for it, fr, pl, sk
Modified Paths:
--------------
trunk/pywikipedia/noreferences.py
Modified: trunk/pywikipedia/noreferences.py
===================================================================
--- trunk/pywikipedia/noreferences.py 2009-12-28 08:50:09 UTC (rev 7832)
+++ trunk/pywikipedia/noreferences.py 2009-12-28 09:24:21 UTC (rev 7833)
@@ -10,17 +10,17 @@
¶ms;
- -xml Retrieve information from a local XML dump (pages-articles
- or pages-meta-current, see http://download.wikimedia.org).
- Argument can also be given as "-xml:filename".
+ -xml Retrieve information from a local XML dump (pages-articles
+ or pages-meta-current, see http://download.wikimedia.org).
+ Argument can also be given as "-xml:filename".
- -namespace:n Number or name of namespace to process. The parameter can be
- used multiple times. It works in combination with all other
- parameters, except for the -start parameter. If you e.g.
- want to iterate over all categories starting at M, use
- -start:Category:M.
+ -namespace:n Number or name of namespace to process. The parameter can be
+ used multiple times. It works in combination with all other
+ parameters, except for the -start parameter. If you e.g.
+ want to iterate over all categories starting at M, use
+ -start:Category:M.
- -always Don't prompt you for each replacement.
+ -always Don't prompt you for each replacement.
All other parameters will be regarded as part of the title of a single page,
and the bot will only work on that single page.
@@ -111,9 +111,11 @@
u'Lásd még',
],
'it': [
- u'Note',
+ u'Bibliografia',
+ u'Voci correlate',
+ u'Altri progetti',
+ u'Collegamenti esterni',
u'Vedi anche',
- u'Riferimenti',
],
'ja':[
u'関連項目',
@@ -151,7 +153,10 @@
u'Ver também',
u'Notas',
],
- 'zh':[
+ 'sk': [
+ u'Pozri aj',
+ ],
+ 'zh': [
u'外部連结',
u'外部链接',
],
@@ -186,7 +191,8 @@
u'Lähteet',
u'Viitteet',
],
- 'fr': [
+ 'fr': [ # [[fr:Aide:Note]]
+ u'Notes et références',
u'Références',
u'References',
u'Notes'
@@ -203,8 +209,9 @@
],
'it': [
u'Note',
+ u'Riferimenti',
],
- 'ja':[
+ 'ja': [
u'脚注',
u'脚注欄',
u'脚注・出典',
@@ -212,7 +219,7 @@
u'注釈',
u'註',
],
- 'ko':[
+ 'ko': [
u'주석',
u'각주'
u'주석 및 참고 자료'
@@ -232,11 +239,16 @@
],
'pl': [
u'Przypisy',
+ u'Ogólne przypisy',
+ u'Notatki',
],
'pt': [
u'Referências',
],
- 'zh':[
+ 'sk': [
+ u'Referencie',
+ ],
+ 'zh': [
u'參考文獻',
u'参考文献',
u'參考資料',