mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 00:13:36 +00:00
329df8c953
* Export parser data (date format, digits, timezone names, and messages for weekday/month names) converted to language variants * Update the parsers to try matching using every variant, in case the page is displayed in non-default variant (and to avoid problems with incomplete variant conversion) Bug: T259818 Change-Id: I04d73992cd31ce06fa79f87df0c0a53d7efc3c58 |
||
---|---|---|
.. | ||
arwiki-config.json | ||
arwiki-data.json | ||
ckbwiki-config.json | ||
ckbwiki-data.json | ||
enwiki-config.json | ||
enwiki-data.json | ||
frwiki-config.json | ||
frwiki-data.json | ||
huwiki-config.json | ||
huwiki-data.json | ||
nlwiki-config.json | ||
nlwiki-data.json | ||
plwiki-config.json | ||
plwiki-data.json | ||
README.txt |
Minimal overrides for Hooks::getLocalData() and mw.config required for us to be able to parse HTML generated by the given wiki. To make one of these files, run the following in browser console: config.json: JSON.stringify( mw.config.get( [ 'wgContentLanguage', 'wgArticlePath', 'wgNamespaceIds', 'wgFormattedNamespaces' ] ), null, 2 ) data.json: JSON.stringify( mw.loader.moduleRegistry[ 'ext.discussionTools.init' ].packageExports[ 'parser/data.json' ], null, 2 )