Siebrand has uploaded a new change for review.
https://gerrit.wikimedia.org/r/154796
Change subject: WIP: Use JSON for Pywikibot
......................................................................
WIP: Use JSON for Pywikibot
Change-Id: I66d94f3fef3ae608af0e0496fd1f96c3ff1cba77
---
A groups/Pywikibot/Pywikibot-JSON.yaml
M groups/Pywikibot/Pywikibot.yaml
2 files changed, 63 insertions(+), 8 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/translatewiki
refs/changes/96/154796/1
diff --git a/groups/Pywikibot/Pywikibot-JSON.yaml
b/groups/Pywikibot/Pywikibot-JSON.yaml
new file mode 100644
index 0000000..63bde30
--- /dev/null
+++ b/groups/Pywikibot/Pywikibot-JSON.yaml
@@ -0,0 +1,63 @@
+TEMPLATE:
+ BASIC:
+ icon: wiki://Pwb_icon.svg
+ description: "{{int:translate-group-desc-pywikipedia}}"
+ namespace: NS_PYWIKIBOT
+ class: FileBasedMessageGroup
+
+ FILES:
+ class: JsonFFS
+ # Pywikibot works on wiki domain code, so mapping fallbacked to Wikimedia
code.
+ codeMap:
+ be-tarask: be-x-old
+ gan-hant: gan
+ gsw: als
+ hif-latn: hif
+ ike-cans: iu
+ kbd-cyrl: kbd
+ kk-cyrl: kk
+ ks-arab: ks
+ ku-latn: ku
+ nb: "no"
+ rup: roa-rup
+ ruq-latn: ruq
+ sgs: bat-smg
+ sr-ec: sr
+ tg-cyrl: tg
+ tt-cyrl: tt
+ ug-arab: ug
+ vro: fiu-vro
+ zh-hans: zh
+
+ CHECKER:
+ class: MessageChecker
+ checks:
+ # This check should be renamed when we use JSON for everything
+ - pythonInterpolationCheck
+
+ LANGUAGES:
+ blacklist:
+ - be-x-old
+ - gan
+ - als
+ - hif
+ - iu
+ - kbd
+ - kk
+ - ks
+ - ku
+ - "no"
+ - ruq
+ - sr
+ - tg
+ - tt
+ - ug
+ - zh
+
+---
+BASIC:
+ id: out-pywikipedia-weblinkchecker
+ label: Pywikibot Web Link Checker
+
+FILES:
+ sourcePattern: "%GROUPROOT%/pywikibot/weblinkchecker/%CODE%.json"
diff --git a/groups/Pywikibot/Pywikibot.yaml b/groups/Pywikibot/Pywikibot.yaml
index 7baaff9..861cdd2 100644
--- a/groups/Pywikibot/Pywikibot.yaml
+++ b/groups/Pywikibot/Pywikibot.yaml
@@ -404,14 +404,6 @@
definitionFile: "%GROUPROOT%/pywikibot/unlink.py"
---
BASIC:
- id: out-pywikipedia-weblinkchecker
- label: Pywikibot Web Link Checker
-
-FILES:
- sourcePattern: "%GROUPROOT%/pywikibot/weblinkchecker.py"
- definitionFile: "%GROUPROOT%/pywikibot/weblinkchecker.py"
----
-BASIC:
id: out-pywikipedia-welcome
label: Pywikibot Welcome
--
To view, visit https://gerrit.wikimedia.org/r/154796
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I66d94f3fef3ae608af0e0496fd1f96c3ff1cba77
Gerrit-PatchSet: 1
Gerrit-Project: translatewiki
Gerrit-Branch: master
Gerrit-Owner: Siebrand <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits