mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 00:00:49 +00:00
Mention the "Continue" label as a parameter in visualeditor-recreate
Bug: T75971 Change-Id: Id075233da4e8a2978b07b5f2735ac6620ff5330d
This commit is contained in:
parent
15ed437331
commit
9dad03819e
|
@ -889,6 +889,9 @@ $wgResourceModules += array(
|
|||
'visualeditor-wikitext-warning-title',
|
||||
'visualeditor-window-title',
|
||||
|
||||
// Mentioned in another message
|
||||
'ooui-dialog-process-continue',
|
||||
|
||||
// Used by the TOC widget (currently experimental)
|
||||
'toc',
|
||||
'showtoc',
|
||||
|
|
|
@ -273,7 +273,7 @@
|
|||
"visualeditor-savedialog-warning-dirty": "Your edit may have been corrupted – please review before saving.",
|
||||
"visualeditor-saveerror": "Error saving data to server: $1.",
|
||||
"visualeditor-serializeerror": "Error loading data from server: $1.",
|
||||
"visualeditor-recreate": "The page has been deleted since you started editing. Press continue to recreate it.",
|
||||
"visualeditor-recreate": "The page has been deleted since you started editing. Press \"$1\" to recreate it.",
|
||||
"visualeditor-settings-tool": "Page settings",
|
||||
"visualeditor-timeout":"It looks like this editor is currently unavailable. Would you like to edit in source mode instead?",
|
||||
"visualeditor-toolbar-cite-label": "Cite",
|
||||
|
|
|
@ -282,7 +282,7 @@
|
|||
"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-serializeerror": "Text shown when the editor fails to load the wikitext for saving.\n\nParameters:\n* $1 is an error message, in English.",
|
||||
"visualeditor-recreate": "Text shown when the editor fails to save the page due to it having been deleted since they opened VE. The \"continue\" message is {{mw-msg|ooui-dialog-process-continue}}.",
|
||||
"visualeditor-recreate": "Text shown when the editor fails to save the page due to it having been deleted since they opened VE. $1 is the message {{msg-mw|ooui-dialog-process-continue}}.",
|
||||
"visualeditor-settings-tool": "Text of tool in the toolbar the lets users set specific page settings.\n{{Identical|Page settings}}",
|
||||
"visualeditor-timeout": "Text (JavaScript confirm()) shown when the editor fails to load properly due to a 504 Gateway Timeout error.",
|
||||
"visualeditor-toolbar-cite-label": "Label text for the toolbar button for inserting customized references.\n{{Identical|Cite}}",
|
||||
|
|
|
@ -667,8 +667,10 @@ ve.init.mw.ViewPageTarget.prototype.onSaveErrorUnknown = function ( editApi, dat
|
|||
* @method
|
||||
*/
|
||||
ve.init.mw.ViewPageTarget.prototype.onSaveErrorPageDeleted = function () {
|
||||
var continueLabel = mw.msg( 'ooui-dialog-process-continue' );
|
||||
|
||||
this.pageDeletedWarning = true;
|
||||
this.showSaveError( mw.msg( 'visualeditor-recreate' ), true, true );
|
||||
this.showSaveError( mw.msg( 'visualeditor-recreate', continueLabel ), true, true );
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue