diff --git a/extension.json b/extension.json index 01a35ecf3a..9ac2f1c054 100644 --- a/extension.json +++ b/extension.json @@ -341,6 +341,7 @@ "dependencies": [ "ext.visualEditor.track", "ext.visualEditor.core.utils.parsing", + "mediawiki.jqueryMsg", "mediawiki.String", "jquery.textSelection", "mediawiki.api", diff --git a/modules/ve-mw/preinit/ve.init.mw.ArticleTargetSaver.js b/modules/ve-mw/preinit/ve.init.mw.ArticleTargetSaver.js index 8e6a01a4a9..147fca9505 100644 --- a/modules/ve-mw/preinit/ve.init.mw.ArticleTargetSaver.js +++ b/modules/ve-mw/preinit/ve.init.mw.ArticleTargetSaver.js @@ -254,7 +254,7 @@ if ( !data ) { error = { code: 'invalidresponse', - html: mw.msg( 'visualeditor-error-invalidresponse' ) + html: mw.message( 'api-clientside-error-invalidresponse' ).parse() }; } else if ( data.result !== 'success' ) { // This should only happen when saving an edit and getting a captcha from ConfirmEdit @@ -268,7 +268,7 @@ if ( typeof data.content !== 'string' ) { error = { code: 'invalidcontent', - html: mw.msg( 'visualeditor-error-invalidcontent' ) + html: mw.message( 'api-clientside-error-invalidresponse' ).parse() }; } break; @@ -276,7 +276,7 @@ if ( typeof data.diff !== 'string' ) { error = { code: 'invalidcontent', - html: mw.msg( 'visualeditor-error-invalidcontent' ) + html: mw.message( 'api-clientside-error-invalidresponse' ).parse() }; } break;