Merge "Remove redundant error message used sometimes when switching"

This commit is contained in:
jenkins-bot 2022-06-17 13:24:10 +00:00 committed by Gerrit Code Review
commit e2a3629aa8
4 changed files with 3 additions and 12 deletions

View file

@ -814,8 +814,7 @@
"visualeditor-savedialog-title-preview",
"visualeditor-savedialog-title-review",
"visualeditor-savedialog-title-save",
"visualeditor-savedialog-warning-dirty",
"visualeditor-serializeerror"
"visualeditor-savedialog-warning-dirty"
],
"targets": [
"desktop",
@ -866,8 +865,7 @@
"visualeditor-savedialog-identify-anon",
"visualeditor-savedialog-identify-trylogin",
"visualeditor-savedialog-identify-user",
"visualeditor-saveerror",
"visualeditor-serializeerror"
"visualeditor-saveerror"
],
"targets": [
"desktop",

View file

@ -397,7 +397,6 @@
"visualeditor-saveerror": "Error saving data to server: $1.",
"visualeditor-section-body-placeholder": "New section",
"visualeditor-section-title-placeholder": "Subject",
"visualeditor-serializeerror": "Error loading data from server: $1.",
"visualeditor-loaderror-revidconflict": "Revision IDs returned by the server do not match (document: $1, metadata: $2).",
"visualeditor-loaderror-wrongmode": "Tried to load the editor in wrong mode (data type: \"$1\", editor mode: \"$2\").",
"visualeditor-settings-tool": "Page settings",

View file

@ -417,7 +417,6 @@
"visualeditor-saveerror": "Text shown when the editor fails to save properly.\n\nParameters:\n* $1 is an error message, in English.",
"visualeditor-section-body-placeholder": "Placeholder for surface when adding a new section",
"visualeditor-section-title-placeholder": "Placeholder for title input when adding a new section\n{{Identical|Subject}}",
"visualeditor-serializeerror": "Text shown when the editor fails to load the wikitext for saving.\n\nParameters:\n* $1 is an error message, in English.",
"visualeditor-loaderror-revidconflict": "Error message shown when loading the editor.\n\nParameters:\n* $1 and $2: revision IDs, as numbers",
"visualeditor-loaderror-wrongmode": "Error message shown when loading the editor.\n\nParameters:\n* $1 and $2: names for editing modes (not translateable)",
"visualeditor-settings-tool": "Text of tool in the toolbar the lets users set specific page settings.\n{{Identical|Page settings}}",

View file

@ -879,12 +879,7 @@ ve.init.mw.DesktopArticleTarget.prototype.serialize = function () {
return promise.fail( function ( error, response ) {
var $errorMessages = target.extractErrorMessages( response );
OO.ui.alert(
$( ve.htmlMsg(
'visualeditor-serializeerror',
$( '<span>' ).append( $errorMessages )[ 0 ]
) )
);
OO.ui.alert( $errorMessages );
// It's possible to get here while the save dialog has never been opened (if the user uses
// the switch to source mode option)