mediawiki-extensions-WikiEd.../modules
Jon Harald Søby 499c71114a Stop using autoMsg and use mw.messages directly instead
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
2023-07-06 10:39:24 +02:00
..
images/toolbar Realtime Preview: remove Beta Feature and onboarding popup 2023-03-17 15:22:32 +08:00
insertlink styles: Replace 'mediawiki.ui/variables' call with skin variables 2023-03-27 11:26:24 -07:00
realtimepreview styles: Replace 'mediawiki.ui/variables' call with skin variables 2023-03-27 11:26:24 -07:00
templates Move reference-specific settings to the Cite extension 2023-06-22 14:07:29 +02:00
.eslintrc.json build: Update eslint-config-wikimedia to 0.21.0 2022-02-07 17:27:27 +00:00
ext.wikiEditor.js Revert "Remove hacks that avoid duplicate event logging with MobileFrontend" 2023-06-09 15:20:01 -05:00
ext.wikiEditor.toolbar.styles.less stylelint: Enable selector-pseudo-element-colon-notation 2023-03-30 01:14:34 +02:00
jquery.wikiEditor.dialogs.config.js Stop using autoMsg and use mw.messages directly instead 2023-07-06 10:39:24 +02:00
jquery.wikiEditor.dialogs.config.less Move reference-specific settings to the Cite extension 2023-06-22 14:07:29 +02:00
jquery.wikiEditor.dialogs.js Remove 'resize' logic from jQuery UI dialogs 2021-10-12 11:46:21 +02:00
jquery.wikiEditor.dialogs.less Styles: Replaces deprecated mixins prefixes with unprefixed CSS property 2023-01-29 10:33:01 +01:00
jquery.wikiEditor.js Stop using autoMsg and use mw.messages directly instead 2023-07-06 10:39:24 +02:00
jquery.wikiEditor.less Remove all unused "loading" code, messages and animations 2022-04-21 15:29:15 +02:00
jquery.wikiEditor.toolbar-apex.less Styles: Replaces deprecated mixins prefixes with unprefixed CSS property 2023-01-29 10:33:01 +01:00
jquery.wikiEditor.toolbar-wikimedia.less stylelint: Enable selector-pseudo-element-colon-notation 2023-03-30 01:14:34 +02:00
jquery.wikiEditor.toolbar.config.js Stop using autoMsg and use mw.messages directly instead 2023-07-06 10:39:24 +02:00
jquery.wikiEditor.toolbar.js Streamline smaller pieces of JavaScript code 2022-03-04 09:22:07 +00:00
jquery.wikiEditor.toolbar.less Stop using autoMsg and use mw.messages directly instead 2023-07-06 10:39:24 +02:00