jenkins-bot submitted this change.
Updates for ar, arz, ary
* nowCommonsTemplate
* moveToCommonsTemplate
* skipTemplates
* informationTemplate
* informationFields
* http -> https
Change-Id: I9814f3c07f94e258518230211ef878110ce0e9fc
---
M scripts/imagecopy.py
M scripts/imagecopy_self.py
M scripts/imagetransfer.py
3 files changed, 46 insertions(+), 1 deletion(-)
diff --git a/scripts/imagecopy.py b/scripts/imagecopy.py
index aae2751..ae631b4 100644
--- a/scripts/imagecopy.py
+++ b/scripts/imagecopy.py
@@ -98,6 +98,8 @@
'am': '{{NowCommons|File:%s}}',
'ang': '{{NowCommons|File:%s}}',
'ar': '{{الآن كومنز|%s}}',
+ 'ary': '{{Now Commons|%s}}',
+ 'arz': '{{Now Commons|%s}}',
'ast': '{{EnCommons|File:%s}}',
'az': '{{NowCommons|%s}}',
'bar': '{{NowCommons|%s}}',
diff --git a/scripts/imagecopy_self.py b/scripts/imagecopy_self.py
index 6fa8706..977638a 100644
--- a/scripts/imagecopy_self.py
+++ b/scripts/imagecopy_self.py
@@ -3,7 +3,7 @@
Script to copy self published files from English Wikipedia to Commons.
This bot is based on imagecopy.py and intended to be used to empty out
-http://en.wikipedia.org/wiki/Category:Self-published_work
+https://en.wikipedia.org/wiki/Category:Self-published_work
This bot uses a graphical interface and may not work from commandline
only environment.
@@ -62,6 +62,9 @@
NL = ''
nowCommonsTemplate = {
+ 'ar': '{{الآن كومنز|%s}}',
+ 'ary': '{{Now Commons|%s}}',
+ 'arz': '{{Now Commons|%s}}',
'de': '{{NowCommons|%s}}',
'en': ('{{NowCommons|1=File:%s|date=~~~~~|'
'reviewer={{subst:REVISIONUSER}}}}'),
@@ -72,6 +75,9 @@
}
moveToCommonsTemplate = {
+ 'ar': ['نقل إلى كومنز', 'Copy to Wikimedia Commons'],
+ 'ary': ['نقل إلى كومنز', 'Copy to Wikimedia Commons'],
+ 'arz': ['نقل ل كومنز', 'Copy to Wikimedia Commons'],
'de': ['NowCommons', 'NC', 'NCT', 'Nowcommons'],
'en': ['Commons ok', 'Copy to Wikimedia Commons', 'Move to commons',
'Movetocommons', 'To commons',
@@ -82,6 +88,11 @@
}
skipTemplates = {
+ 'ar': ['NowCommons',
+ 'الآن كومونز',
+ ],
+ 'ary': ['NowCommons', ],
+ 'arz': ['NowCommons', ],
'de': ['Löschprüfung',
'NoCommons',
'NowCommons',
@@ -240,6 +251,9 @@
}
informationTemplate = {
+ 'ar': 'معلومات',
+ 'ary': 'معلومات',
+ 'arz': 'معلومات',
'de': 'Information',
'en': 'Information',
'lb': 'Information',
@@ -248,6 +262,33 @@
}
informationFields = {
+ 'ar': {
+ 'location': 'remarks',
+ 'وصف': 'description',
+ 'مصدر': 'source',
+ 'تاريخ': 'date',
+ 'منتج': 'author',
+ 'إذن': 'permission',
+ 'نسخ أخرى': 'other versions',
+ },
+ 'ary': {
+ 'location': 'remarks',
+ 'وصف': 'description',
+ 'مصدر': 'source',
+ 'تاريخ': 'date',
+ 'منتج': 'author',
+ 'إذن': 'permission',
+ 'نسخ أخرى': 'other versions',
+ },
+ 'arz': {
+ 'location': 'remarks',
+ 'وصف': 'description',
+ 'مصدر': 'source',
+ 'تاريخ': 'date',
+ 'منتج': 'author',
+ 'إذن': 'permission',
+ 'نسخ أخرى': 'other versions',
+ },
'de': {
'anmerkungen': 'remarks', # FIXME: More flexible
'beschreibung': 'description',
diff --git a/scripts/imagetransfer.py b/scripts/imagetransfer.py
index b315916..293ae8e 100755
--- a/scripts/imagetransfer.py
+++ b/scripts/imagetransfer.py
@@ -48,6 +48,8 @@
nowCommonsTemplate = {
'ar': '{{الآن كومنز|%s}}',
+ 'ary': '{{Now Commons|%s}}',
+ 'arz': '{{Now Commons|%s}}',
'de': '{{NowCommons|%s}}',
'fr': '{{Désormais sur Commons|%s}}',
'en': '{{subst:ncd|Image:%s}}',
To view, visit change 633988. To unsubscribe, or for help writing mail filters, visit settings.