jenkins-bot merged this change.
Add beta site to wikisource
This ensures the repo knows of a safe site to use for ProofreadPage
edit test.
Change-Id: I6f0203e7e0d7860c51c4b8086a4bf657607a9429
---
M pywikibot/families/wikisource_family.py
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/pywikibot/families/wikisource_family.py b/pywikibot/families/wikisource_family.py
index 2a4218d..b7f3b8a 100644
--- a/pywikibot/families/wikisource_family.py
+++ b/pywikibot/families/wikisource_family.py
@@ -36,6 +36,9 @@
'bs', 'sah', 'gl', 'lt', 'sk', 'eu', 'cy', 'pa', 'zh-min-nan', 'fo',
]
+ # Sites we want to edit but not count as real languages
+ test_codes = ['beta']
+
category_redirect_templates = {
'_default': (),
'ar': ('قالب:تحويل تصنيف',),
@@ -51,9 +54,10 @@
def langs(cls):
cls.langs = super(Family, cls).langs
cls.langs['mul'] = cls.domain
+ cls.langs['beta'] = 'en.wikisource.beta.wmflabs.org'
return cls.langs
- languages_by_size.append('mul')
+ languages_by_size += ['mul', 'beta']
# Global bot allowed languages on
# https://meta.wikimedia.org/wiki/BPI#Current_implementation
@@ -91,6 +95,7 @@
'tr': [100],
'vi': [102],
'zh': [102],
+ 'beta': [102],
}
# Subpages for documentation.
To view, visit change 510260. To unsubscribe, or for help writing mail filters, visit settings.