mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 06:24:08 +00:00
Merge "Fix broken error message 'visualeditor-saveerror'"
This commit is contained in:
commit
1e094a8868
|
@ -867,8 +867,7 @@
|
||||||
"visualeditor-redirect-description",
|
"visualeditor-redirect-description",
|
||||||
"visualeditor-savedialog-identify-anon",
|
"visualeditor-savedialog-identify-anon",
|
||||||
"visualeditor-savedialog-identify-trylogin",
|
"visualeditor-savedialog-identify-trylogin",
|
||||||
"visualeditor-savedialog-identify-user",
|
"visualeditor-savedialog-identify-user"
|
||||||
"visualeditor-saveerror"
|
|
||||||
],
|
],
|
||||||
"targets": [
|
"targets": [
|
||||||
"desktop",
|
"desktop",
|
||||||
|
|
|
@ -372,7 +372,6 @@
|
||||||
"visualeditor-savedialog-title-review": "Review your changes",
|
"visualeditor-savedialog-title-review": "Review your changes",
|
||||||
"visualeditor-savedialog-title-save": "Save your changes",
|
"visualeditor-savedialog-title-save": "Save your changes",
|
||||||
"visualeditor-savedialog-warning-dirty": "Your edit may have been corrupted – please review before saving.",
|
"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-body-placeholder": "New section",
|
||||||
"visualeditor-section-title-placeholder": "Subject",
|
"visualeditor-section-title-placeholder": "Subject",
|
||||||
"visualeditor-loaderror-revidconflict": "Revision IDs returned by the server do not match (document: $1, metadata: $2).",
|
"visualeditor-loaderror-revidconflict": "Revision IDs returned by the server do not match (document: $1, metadata: $2).",
|
||||||
|
|
|
@ -392,7 +392,6 @@
|
||||||
"visualeditor-savedialog-title-review": "Title for save dialog slide for the wikitext diff",
|
"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-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-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-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-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",
|
"visualeditor-loaderror-revidconflict": "Error message shown when loading the editor.\n\nParameters:\n* $1 and $2: revision IDs, as numbers",
|
||||||
|
|
|
@ -834,7 +834,7 @@ ve.init.mw.ArticleTarget.prototype.extractErrorMessages = function ( data ) {
|
||||||
*/
|
*/
|
||||||
ve.init.mw.ArticleTarget.prototype.saveErrorEmpty = function () {
|
ve.init.mw.ArticleTarget.prototype.saveErrorEmpty = function () {
|
||||||
this.showSaveError(
|
this.showSaveError(
|
||||||
ve.msg( 'visualeditor-saveerror', ve.msg( 'visualeditor-error-invalidresponse' ) ),
|
this.extractErrorMessages( null ),
|
||||||
false /* prevents reapply */
|
false /* prevents reapply */
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue