From 0ecb7625e6b6d3f2c79285f841459e926fe84ef1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Harald=20S=C3=B8by?= Date: Fri, 30 Jun 2023 23:53:41 +0200 Subject: [PATCH] Replace labelMsg with label: mw.message() The autoMsg function in WikiEditor is about to be deprecated in favour of using mw.message() directly like this. --- resources/syntaxhighlight-wikieditor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/syntaxhighlight-wikieditor.js b/resources/syntaxhighlight-wikieditor.js index f85922e..9f32b68 100644 --- a/resources/syntaxhighlight-wikieditor.js +++ b/resources/syntaxhighlight-wikieditor.js @@ -4,7 +4,7 @@ mw.hook('wikiEditor.toolbarReady').add(function ($textarea) { group: 'insert', tools: { smile: { - labelMsg: 'syntaxhighlight-wikieditor-button', + label: mw.message( 'syntaxhighlight-wikieditor-button' ).text(), type: 'button', oouiIcon: 'code', action: { @@ -18,4 +18,4 @@ mw.hook('wikiEditor.toolbarReady').add(function ($textarea) { } } }); -}); \ No newline at end of file +});