mediawiki-extensions-Gadgets/i18n
Timo Tijhof d2a37f5f69 Replace EditFilterMergedContent hook with ContentHandler override
The reason for this hook is not the validation itself, because that
is already done by `GadgetDefinitionContent->isValid` which is part
of the core Content interface, already enforced by ContentHandler.

Instead, the hook was here to provide the custom interface message
GadgetDefinitionValidator, because the core Content interface is
limited to boolean isValid(), which provides a very generic error
message.

However, nowadays ContentHandler exposes this mechanism directly
such that we can directly attach a custom message to it without
needing to wait for the stack to reach the EditPage and then override
it after the fact from a global hook.

Also:

* Simplify validation logic towards "is" checks with only an
  expected description.

* Move schema.json file to top-level file.
  It has been unused for as long as it has been in the repo, despite
  appearing (due to its placement) to be used as part of the source.
  It was added, I believe, with the intent to be used by the validator,
  but it isn't. It also isn't validated or checked for correctness
  by anything right now.
  For now, keep it as informal schema in the top-level location for
  easy discovery where perhaps others can find a use for it.
  SD0001 mentions gadget developers may want to start using it for
  Git-maintained gadgets to help with validation in their IDE, after
  Gadgets 2.0 is launched.

Test Plan:
* Set `$wgGadgetsRepo = 'json+definition';`
* Create `MediaWiki:Gadgets/example.json`
* Attempt to save "x" in settings.namespaces item.
* Attempt to save "x.zip" in module.pages item.
* Fails with this patch, similar as on master.

Bug: T31272
Change-Id: I61bc3e40348a0aeb3bd3fa9ca86ccb7b93304095
2024-04-24 19:31:14 +00:00
..
api Localisation updates from https://translatewiki.net. 2024-04-22 09:28:22 +02:00
ace.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
af.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
am.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
an.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
ar.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
arc.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
arz.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
as.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
ast.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
awa.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
az.json Localisation updates from https://translatewiki.net. 2024-04-22 09:28:22 +02:00
azb.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
ba.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
ban.json
bar.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
bcc.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
bcl.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
be-tarask.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
be.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
bew.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
bg.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
bho.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
blk.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
bn.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
bqi.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
br.json Localisation updates from https://translatewiki.net. 2024-03-29 08:46:48 +01:00
bs.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
ca.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
ce.json Localisation updates from https://translatewiki.net. 2024-04-05 09:38:12 +02:00
ckb.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
cs.json Localisation updates from https://translatewiki.net. 2024-04-01 09:22:41 +02:00
cu.json
cv.json Localisation updates from https://translatewiki.net. 2024-03-25 08:35:57 +01:00
cy.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
da.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
dag.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
de-ch.json
de-formal.json
de.json Localisation updates from https://translatewiki.net. 2024-03-27 08:17:35 +01:00
dga.json Localisation updates from https://translatewiki.net. 2024-01-28 16:06:41 +01:00
diq.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
dsb.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
dty.json
el.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
en.json Replace EditFilterMergedContent hook with ContentHandler override 2024-04-24 19:31:14 +00:00
eo.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
es.json Localisation updates from https://translatewiki.net. 2024-03-28 08:31:58 +01:00
et.json Localisation updates from https://translatewiki.net. 2024-04-01 09:22:41 +02:00
eu.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
ext.json
fa.json Localisation updates from https://translatewiki.net. 2024-03-26 08:19:41 +01:00
fi.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
fit.json
fo.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
fr.json Localisation updates from https://translatewiki.net. 2024-04-03 09:23:44 +02:00
frp.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
frr.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
fy.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
ga.json
gl.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
grc.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
gsw.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
gu.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
gur.json Localisation updates from https://translatewiki.net. 2024-01-02 10:16:15 +01:00
guw.json
he.json Localisation updates from https://translatewiki.net. 2024-03-28 08:31:58 +01:00
hi.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
hr.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
hsb.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
hu.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
hy.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
hyw.json
ia.json Localisation updates from https://translatewiki.net. 2024-03-28 08:31:58 +01:00
id.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
ilo.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
inh.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
io.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
is.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
it.json Localisation updates from https://translatewiki.net. 2024-03-28 08:31:58 +01:00
ja.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
jut.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
jv.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
ka.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
kaa.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
kjp.json
kk-arab.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
kk-cyrl.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
kk-latn.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
km.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
kn.json
ko.json Localisation updates from https://translatewiki.net. 2024-03-08 08:23:04 +01:00
krc.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
ks-arab.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
ksh.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
ku-latn.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
ky.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
lb.json Localisation updates from https://translatewiki.net. 2024-04-08 09:25:50 +02:00
lez.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
lfn.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
li.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
lij.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
lki.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
lld.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
lmo.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
lrc.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
lt.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
lus.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
lv.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
lzh.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
mai.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
mg.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
min.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
mk.json Localisation updates from https://translatewiki.net. 2024-03-19 08:25:05 +01:00
ml.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
mos.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
mr.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
ms.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
mt.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
mwl.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
my.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
mzn.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
nah.json
nap.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
nb.json Localisation updates from https://translatewiki.net. 2024-04-01 09:22:41 +02:00
nds-nl.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
nds.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
ne.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
nl-informal.json
nl.json Localisation updates from https://translatewiki.net. 2024-04-15 09:27:59 +02:00
nn.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
nqo.json Localisation updates from https://translatewiki.net. 2024-03-13 08:25:37 +01:00
oc.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
olo.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
or.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
pa.json Localisation updates from https://translatewiki.net. 2024-04-04 09:38:12 +02:00
pam.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
pdc.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
pl.json Localisation updates from https://translatewiki.net. 2024-03-29 08:46:48 +01:00
pms.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
pnb.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
ps.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
pt-br.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
pt.json Localisation updates from https://translatewiki.net. 2024-04-08 09:25:50 +02:00
qqq.json Replace EditFilterMergedContent hook with ContentHandler override 2024-04-24 19:31:14 +00:00
qu.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
rki.json Localisation updates from https://translatewiki.net. 2022-10-27 08:55:00 +02:00
rmc.json
ro.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
roa-tara.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
ru.json Localisation updates from https://translatewiki.net. 2024-04-09 09:26:45 +02:00
rue.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
sa.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
sah.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
scn.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
sd.json Localisation updates from https://translatewiki.net. 2024-04-04 09:38:12 +02:00
sdc.json
se.json
sgs.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
sh-latn.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
si.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
sjd.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
sje.json
sk.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
skr-arab.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
sl.json Localisation updates from https://translatewiki.net. 2024-03-04 08:23:26 +01:00
smn.json
sms.json
so.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
sq.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
sr-ec.json Localisation updates from https://translatewiki.net. 2024-03-28 08:31:58 +01:00
sr-el.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
stq.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
su.json
sv.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
sw.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
szy.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
ta.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
tay.json
tcy.json Localisation updates from https://translatewiki.net. 2024-01-02 10:16:15 +01:00
te.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
tg-cyrl.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
tg-latn.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
th.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
ti.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
tk.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
tl.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
tly.json Localisation updates from https://translatewiki.net. 2023-03-13 08:38:54 +01:00
tr.json Localisation updates from https://translatewiki.net. 2024-04-03 09:23:44 +02:00
tt-cyrl.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
ug-arab.json
uk.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
ur.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
uz.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
vec.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
vep.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
vi.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00
vo.json
xal.json Localisation updates from https://translatewiki.net. 2023-12-04 09:04:15 +01:00
yi.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
yo.json
yue-hant.json Localisation updates from https://translatewiki.net. 2024-02-12 14:49:39 +01:00
zh-hans.json Localisation updates from https://translatewiki.net. 2024-04-22 09:28:22 +02:00
zh-hant.json Localisation updates from https://translatewiki.net. 2024-02-26 08:36:07 +01:00