diff --git a/extension.json b/extension.json index d9f90bc753..a343eb3601 100644 --- a/extension.json +++ b/extension.json @@ -867,8 +867,7 @@ "visualeditor-redirect-description", "visualeditor-savedialog-identify-anon", "visualeditor-savedialog-identify-trylogin", - "visualeditor-savedialog-identify-user", - "visualeditor-saveerror" + "visualeditor-savedialog-identify-user" ], "targets": [ "desktop", diff --git a/i18n/ve-mw/en.json b/i18n/ve-mw/en.json index 2efeb11746..912105d7c6 100644 --- a/i18n/ve-mw/en.json +++ b/i18n/ve-mw/en.json @@ -372,7 +372,6 @@ "visualeditor-savedialog-title-review": "Review your changes", "visualeditor-savedialog-title-save": "Save your changes", "visualeditor-savedialog-warning-dirty": "Your edit may have been corrupted – please review before saving.", - "visualeditor-saveerror": "Error saving data to server: $1.", "visualeditor-section-body-placeholder": "New section", "visualeditor-section-title-placeholder": "Subject", "visualeditor-loaderror-revidconflict": "Revision IDs returned by the server do not match (document: $1, metadata: $2).", diff --git a/i18n/ve-mw/qqq.json b/i18n/ve-mw/qqq.json index 88e4e44921..6920bb90b8 100644 --- a/i18n/ve-mw/qqq.json +++ b/i18n/ve-mw/qqq.json @@ -392,7 +392,6 @@ "visualeditor-savedialog-title-review": "Title for save dialog slide for the wikitext diff", "visualeditor-savedialog-title-save": "Title for save dialog slide for the final save step. Appears between the buttons {{msg-mw|visualeditor-toolbar-savedialog}} and {{msg-mw|visualeditor-dialog-action-cancel}}.", "visualeditor-savedialog-warning-dirty": "Note displayed to users in the save dialog if VisualEditor believes that it may have corrupted the page.", - "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-loaderror-revidconflict": "Error message shown when loading the editor.\n\nParameters:\n* $1 and $2: revision IDs, as numbers", diff --git a/modules/ve-mw/init/targets/ve.init.mw.ArticleTarget.js b/modules/ve-mw/init/targets/ve.init.mw.ArticleTarget.js index 9e853d4ddc..4d62f0eeff 100644 --- a/modules/ve-mw/init/targets/ve.init.mw.ArticleTarget.js +++ b/modules/ve-mw/init/targets/ve.init.mw.ArticleTarget.js @@ -834,7 +834,7 @@ ve.init.mw.ArticleTarget.prototype.extractErrorMessages = function ( data ) { */ ve.init.mw.ArticleTarget.prototype.saveErrorEmpty = function () { this.showSaveError( - ve.msg( 'visualeditor-saveerror', ve.msg( 'visualeditor-error-invalidresponse' ) ), + this.extractErrorMessages( null ), false /* prevents reapply */ ); };