Amire80 has uploaded a new change for review. https://gerrit.wikimedia.org/r/176298
Change subject: Mention the "Continue" label as a parameter in visualeditor-recreate ...................................................................... Mention the "Continue" label as a parameter in visualeditor-recreate Bug: T75971 Change-Id: Id075233da4e8a2978b07b5f2735ac6620ff5330d --- M VisualEditor.php M modules/ve-mw/i18n/en.json M modules/ve-mw/i18n/qqq.json M modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js 4 files changed, 8 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor refs/changes/98/176298/1 diff --git a/VisualEditor.php b/VisualEditor.php index 328b4bf..8b2bef1 100644 --- a/VisualEditor.php +++ b/VisualEditor.php @@ -889,6 +889,9 @@ 'visualeditor-wikitext-warning-title', 'visualeditor-window-title', + // Mentioned in another message + 'ooui-dialog-process-continue', + // Used by the TOC widget (currently experimental) 'toc', 'showtoc', diff --git a/modules/ve-mw/i18n/en.json b/modules/ve-mw/i18n/en.json index 23ab2e8..05f1e91 100644 --- a/modules/ve-mw/i18n/en.json +++ b/modules/ve-mw/i18n/en.json @@ -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", diff --git a/modules/ve-mw/i18n/qqq.json b/modules/ve-mw/i18n/qqq.json index fbdf3ef..74b0bc7 100644 --- a/modules/ve-mw/i18n/qqq.json +++ b/modules/ve-mw/i18n/qqq.json @@ -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}}", diff --git a/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js b/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js index b79fdfc..e1eaf56 100644 --- a/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js +++ b/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js @@ -667,8 +667,10 @@ * @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 ); }; /** -- To view, visit https://gerrit.wikimedia.org/r/176298 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id075233da4e8a2978b07b5f2735ac6620ff5330d Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/VisualEditor Gerrit-Branch: master Gerrit-Owner: Amire80 <amir.ahar...@mail.huji.ac.il> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits