Revision: 8680
Author: amir
Date: 2010-10-21 13:19:22 +0000 (Thu, 21 Oct 2010)
Log Message:
-----------
fa translate
Modified Paths:
--------------
trunk/pywikipedia/category_redirect.py
Modified: trunk/pywikipedia/category_redirect.py
===================================================================
--- trunk/pywikipedia/category_redirect.py 2010-10-21 13:11:09 UTC (rev 8679)
+++ trunk/pywikipedia/category_redirect.py 2010-10-21 13:19:22 UTC (rev 8680)
@@ -83,6 +83,7 @@
'da': u"Robot: flytter sider ud af omdirigeringskategorien",
'en': u"Robot: moving pages out of redirected category",
'es': u"Bot: moviendo páginas de categoría redirigida",
+ 'fa': u"ربات:تغییر ردههایی که انتقال یافتهاند",
'hu': u"Bot: Lapok automatikus áthelyezése átirányított kategóriából",
'ja': u"ロボットによる: 移行中のカテゴリからのカテゴリ変更",
'ksh': u"Bot: Sigk uß en ömjeleidt Saachjropp eruß jesammdt.",
@@ -100,6 +101,7 @@
'da':u"Robot: tilføjer omdirigeringsskabelon for vedligeholdelse",
'en':u"Robot: adding category redirect template for maintenance",
'es':u"Bot: añadiendo plantilla de categoría redirigida para mantenimiento",
+ 'fa':u"ربات:افزودن الگوی رده بهتر",
'hu':u"Bot: kategóriaátirányítás sablon hozzáadása",
'ja':u"ロボットによる: 移行中のカテゴリとしてタグ付け",
'ksh':u"Bot: Ömleidungsschalbon dobeijedonn.",
@@ -116,6 +118,7 @@
'da': u"Robot: retter dobbelt omdirigering",
'en': u"Robot: fixing double-redirect",
'es': u"Bot: reparando redirección doble",
+ 'fa': u"ربات:تصحیح تغییرمسیرهای دوتایی",
'fr': u"Robot : Correction des redirections doubles",
'hu': u"Bot: Kettős átirányítás javítása",
'ja': u"ロボットによる: 二重リダイレクト修正",
@@ -133,6 +136,7 @@
'da': u"Bot til vedligeholdelse af kategoromdirigeringer",
'en': u"Category redirect maintenance bot",
'es': u"Bot de mantenimento de categorías redirigidas",
+ 'fa': u"ربات:مرتبسازی ردههای منتقلشده",
'fr': u"Robot de maintenance des redirection de catégorie",
'hu': u"Kategóriaátirányítás-karbantartó bot",
'ja': u"移行中のカテゴリのメンテナンス・ボット",
@@ -151,6 +155,12 @@
%s
~~~~
""",
+ 'fa': u"""\
+صفحات حفاظتشده زیر نیاز به بروزرسانی دارند \
+صفحات:
+%s
+~~~~
+""",
'es': u"""\
Se han detectado las siguientes páginas protegidas y se requieren actualizaciones de \
enlaces de categorías:
@@ -195,6 +205,7 @@
'ar': u"* %s موجودة في %s, وهي تحويلة إلى %s",
'en': u"* %s is in %s, which is a redirect to %s",
'es': u"* %s está en %s, el cual redirecciona a %s",
+ 'fa': u"%s در %s قرار دارد،که به %s انتقال یافتهاست.",
'fr': u"* %s est dans %s, qui est une redirection vers %s",
'ksh': u"* %s es en %s, un dat es en Ömleidung op %s",
'pl': u"* %s jest w %s, która jest przekierowaniem do %s",
Revision: 8679
Author: amir
Date: 2010-10-21 13:11:09 +0000 (Thu, 21 Oct 2010)
Log Message:
-----------
If summary is more than 200 characters will be created copyright violation
Modified Paths:
--------------
trunk/pywikipedia/catlib.py
Modified: trunk/pywikipedia/catlib.py
===================================================================
--- trunk/pywikipedia/catlib.py 2010-10-21 13:03:29 UTC (rev 8678)
+++ trunk/pywikipedia/catlib.py 2010-10-21 13:11:09 UTC (rev 8679)
@@ -458,7 +458,11 @@
wikipedia.output('Moving text from %s to %s.' % (self.title(), targetCat.title()))
authors = ', '.join(self.contributingUsers())
creationSummary = wikipedia.translate(wikipedia.getSite(), msg_created_for_renaming) % (self.title(), authors)
- targetCat.put(self.get(), creationSummary)
+ #Maybe sometimes length of summary is more than 200 characters and thus will not be shown.so bot must listify authors in another place
+ if len(creationSummary)>200:
+ targetCat.put(self.get()+u"/n/nAuthors: %s" % authors, creationSummary)
+ else:
+ targetCat.put(self.get(), creationSummary)
return True
#Like copyTo above, except this removes a list of templates (like deletion templates) that appear in
Revision: 8675
Author: russblau
Date: 2010-10-20 22:03:52 +0000 (Wed, 20 Oct 2010)
Log Message:
-----------
bug fix: don't add duplicate categories to an article
Modified Paths:
--------------
branches/rewrite/scripts/category_redirect.py
Modified: branches/rewrite/scripts/category_redirect.py
===================================================================
--- branches/rewrite/scripts/category_redirect.py 2010-10-20 15:52:22 UTC (rev 8674)
+++ branches/rewrite/scripts/category_redirect.py 2010-10-20 22:03:52 UTC (rev 8675)
@@ -204,7 +204,10 @@
"""
oldtext = article.get(get_redirect=True, force=True)
- newtext = pywikibot.replaceCategoryInPlace(oldtext, oldCat, newCat)
+ if newcat in article.categories():
+ newtext = pywikibot.replaceCategoryInPlace(oldtext, oldCat, None)
+ else:
+ newtext = pywikibot.replaceCategoryInPlace(oldtext, oldCat, newCat)
try:
# even if no changes, still save the page, in case it needs
# an update due to changes in a transcluded template
Revision: 8672
Author: multichill
Date: 2010-10-20 15:10:58 +0000 (Wed, 20 Oct 2010)
Log Message:
-----------
Set Flickr defaults to empty (not none).
Add Panoramio options
Modified Paths:
--------------
trunk/pywikipedia/config.py
Modified: trunk/pywikipedia/config.py
===================================================================
--- trunk/pywikipedia/config.py 2010-10-20 15:08:22 UTC (rev 8671)
+++ trunk/pywikipedia/config.py 2010-10-20 15:10:58 UTC (rev 8672)
@@ -333,11 +333,17 @@
# Using the Flickr api
flickr = {
- 'api_key': None, # Provide your key!
+ 'api_key': u'', # Provide your key!
'review': False, # Do we use automatically make our uploads reviewed?
- 'reviewer': None, # If so, under what reviewer name?
+ 'reviewer': u'', # If so, under what reviewer name?
}
+# Using the Panoramio api
+panoramio = {
+ 'review': False, # Do we use automatically make our uploads reviewed?
+ 'reviewer': u'', # If so, under what reviewer name?
+ }
+
# for all connections: proxy handle
# to use it, proxy['host'] have to support HTTP and include port number (e.g. localhost:8080)
# if the proxy server needs authentication, set ('ID', 'PASSWORD') to proxy['auth'].