mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-27 09:42:11 +00:00
499c71114a
WikiEditor has a clever functionality where you can enter a message key directly by using [key]Msg syntax in the object definition. While that may have been a clever approach, it led to tons of messages in this extension having to be marked as RawHtmlMessages because they could potentially be parsed as HTML. Thus I am replacing all of these instances with using mw.message explicitly instead, with the necessary method attached. The autoMsg (and its cloned autoSafeMsg) functions have had FIXME comments attached since 2018 saying that these methods are unnecessarily complex and should be replaced with using mw.messages directly. This solves a lot of problems for translators in Translatewiki, and hopefully makes the code more straightforward and easier to understand for those reading it down the line. I would like to remove the autoMsg and autoSafeMsg functions altogether, but their functionality is still in use in a few extensions (and potentially on-wiki code), so we would have to clean up that first. Bug: T154891 Bug: T294760 Change-Id: I2835341867df85552579ea6927cd39a6f889fa6b |
||
---|---|---|
.. | ||
images/toolbar | ||
insertlink | ||
realtimepreview | ||
templates | ||
.eslintrc.json | ||
ext.wikiEditor.js | ||
ext.wikiEditor.toolbar.styles.less | ||
jquery.wikiEditor.dialogs.config.js | ||
jquery.wikiEditor.dialogs.config.less | ||
jquery.wikiEditor.dialogs.js | ||
jquery.wikiEditor.dialogs.less | ||
jquery.wikiEditor.js | ||
jquery.wikiEditor.less | ||
jquery.wikiEditor.toolbar-apex.less | ||
jquery.wikiEditor.toolbar-wikimedia.less | ||
jquery.wikiEditor.toolbar.config.js | ||
jquery.wikiEditor.toolbar.js | ||
jquery.wikiEditor.toolbar.less |