From ec872093aa2a7f37c422857276fab4f81ab8e9d9 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Thu, 30 Jul 2020 16:43:59 +0100 Subject: [PATCH] ExportWikitextDialog: Add help text Change-Id: I5508c167aa8119eb86356858fc0eedf69cc093bf --- extension.json | 1 + i18n/ve-mw/en.json | 1 + i18n/ve-mw/qqq.json | 1 + modules/ve-mw-collab/ve.ui.MWExportWikitextDialog.js | 4 +++- 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/extension.json b/extension.json index 8f0db68091..ba3870a547 100644 --- a/extension.json +++ b/extension.json @@ -531,6 +531,7 @@ "visualeditor-rebase-client-export", "visualeditor-rebase-client-export-start", "visualeditor-rebase-client-import-name", + "visualeditor-rebase-client-title-help", "visualeditor-savedialog-review-wikitext" ], "targets": [ diff --git a/i18n/ve-mw/en.json b/i18n/ve-mw/en.json index 3c5e31503c..8d68ad8da5 100644 --- a/i18n/ve-mw/en.json +++ b/i18n/ve-mw/en.json @@ -365,6 +365,7 @@ "visualeditor-rebase-client-export-start": "Export…", "visualeditor-rebase-client-import": "Import", "visualeditor-rebase-client-import-name": "Page title", + "visualeditor-rebase-client-title-help": "You will be able to review changes before saving.", "visualeditor-recreate": "The page has been deleted since you started editing. Press \"$1\" to recreate it.", "visualeditor-redirect-description": "Redirect to $1", "visualeditor-savedialog-error-badtoken": "We could not save your edit because the session was no longer valid.", diff --git a/i18n/ve-mw/qqq.json b/i18n/ve-mw/qqq.json index 52cce736a9..e169e39322 100644 --- a/i18n/ve-mw/qqq.json +++ b/i18n/ve-mw/qqq.json @@ -383,6 +383,7 @@ "visualeditor-rebase-client-export-start": "Label for button to start a process to export a document\n\nSee also:\n* {{msg-mw|visualeditor-rebase-client-export}}", "visualeditor-rebase-client-import": "Label for button to import a document from the wiki", "visualeditor-rebase-client-import-name": "Label import document input", + "visualeditor-rebase-client-title-help": "Help text shown with the export to title field.", "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-redirect-description": "Title shown as the description of redirect nodes.\n\nParameters:\n* $1 - Target title of redirect", "visualeditor-savedialog-error-badtoken": "Error displayed in the save dialog if saving the edit failed due to an invalid edit token (likely due to the user having logged out in a separate window, or logged in again)", diff --git a/modules/ve-mw-collab/ve.ui.MWExportWikitextDialog.js b/modules/ve-mw-collab/ve.ui.MWExportWikitextDialog.js index 6b6a5bbac2..8bc28e7711 100644 --- a/modules/ve-mw-collab/ve.ui.MWExportWikitextDialog.js +++ b/modules/ve-mw-collab/ve.ui.MWExportWikitextDialog.js @@ -60,7 +60,9 @@ ve.ui.MWExportWikitextDialog.prototype.initialize = function () { } ); this.titleField = new OO.ui.ActionFieldLayout( this.titleInput, this.titleButton, { align: 'top', - label: ve.msg( 'visualeditor-rebase-client-import-name' ) + label: ve.msg( 'visualeditor-rebase-client-import-name' ), + help: ve.msg( 'visualeditor-rebase-client-title-help' ), + helpInline: true } ); this.titleButton.on( 'click', this.export.bind( this ) );