From 86ff749526c81cc7217ac18dd383cbe64bd479ad Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Wed, 31 Oct 2018 14:50:03 +0000 Subject: [PATCH] AbandonEditDialog: Rename i18n strings This wasn't done in the previous patch so that TranslateWiki picks up the repo move. Change-Id: Ic6767dc61aeaad8e18c20b0afc1dd929654f4503 --- languages/i18n/en.json | 8 ++++---- languages/i18n/qqq.json | 8 ++++---- resources/Resources.php | 8 ++++---- .../src/mediawiki.widgets/mw.widgets.AbandonEditDialog.js | 8 ++++---- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/languages/i18n/en.json b/languages/i18n/en.json index 436c07ab18..39ba360957 100644 --- a/languages/i18n/en.json +++ b/languages/i18n/en.json @@ -4357,10 +4357,10 @@ "special-characters-title-endash": "en dash", "special-characters-title-emdash": "em dash", "special-characters-title-minus": "minus sign", - "visualeditor-viewpage-savewarning": "Are you sure you want to leave editing mode without saving first?", - "visualeditor-viewpage-savewarning-discard": "Discard edits", - "visualeditor-viewpage-savewarning-keep": "Continue editing", - "visualeditor-viewpage-savewarning-title": "Are you sure?", + "mw-widgets-abandonedit": "Are you sure you want to leave editing mode without saving first?", + "mw-widgets-abandonedit-discard": "Discard edits", + "mw-widgets-abandonedit-keep": "Continue editing", + "mw-widgets-abandonedit-title": "Are you sure?", "mw-widgets-dateinput-no-date": "No date selected", "mw-widgets-dateinput-placeholder-day": "YYYY-MM-DD", "mw-widgets-dateinput-placeholder-month": "YYYY-MM", diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json index 50c3dfac55..13957f72d0 100644 --- a/languages/i18n/qqq.json +++ b/languages/i18n/qqq.json @@ -4559,10 +4559,10 @@ "special-characters-title-endash": "Title tooltip for the en dash character (–); See https://en.wikipedia.org/wiki/Dash", "special-characters-title-emdash": "Title tooltip for the em dash character (—); See https://en.wikipedia.org/wiki/Dash", "special-characters-title-minus": "Title tooltip for the minus sign character (−), not to be confused with a hyphen", - "visualeditor-viewpage-savewarning": "Text shown when the user tries to leave the editor without saving their changes.\n\nFollowed by the following buttons:\n* {{msg-mw|Visualeditor-viewpage-savewarning-discard}}\n* {{msg-mw|Visualeditor-viewpage-savewarning-keep}}", - "visualeditor-viewpage-savewarning-discard": "Text shown on the button which closes an editor and discards changes when the user confirms that they want to leave the editor.\n\nPreceded by the prompt {{msg-mw|visualeditor-viewpage-savewarning}}.\n\nFollowed by the button {{msg-mw|visualeditor-viewpage-savewarning-keep}}.", - "visualeditor-viewpage-savewarning-keep": "Text shown on the button which does not do anything when the user decides that they do not want to leave the editor.\n\nPreceded by the button {{msg-mw|Visualeditor-viewpage-savewarning-discard}}.", - "visualeditor-viewpage-savewarning-title": "Title of the dialog shown when the user tries to leave the editor without saving their changes.\n\nFollowed by the following buttons:\n* {{msg-mw|Visualeditor-viewpage-savewarning-discard}}\n* {{msg-mw|Visualeditor-viewpage-savewarning-keep}}\n{{Identical|Are you sure?}}", + "mw-widgets-abandonedit": "Text shown when the user tries to leave the editor without saving their changes.\n\nFollowed by the following buttons:\n* {{msg-mw|mw-widgets-abandonedit-discard}}\n* {{msg-mw|mw-widgets-abandonedit-keep}}", + "mw-widgets-abandonedit-discard": "Text shown on the button which closes an editor and discards changes when the user confirms that they want to leave the editor.\n\nPreceded by the prompt {{msg-mw|mw-widgets-abandonedit}}.\n\nFollowed by the button {{msg-mw|mw-widgets-abandonedit-keep}}.", + "mw-widgets-abandonedit-keep": "Text shown on the button which does not do anything when the user decides that they do not want to leave the editor.\n\nPreceded by the button {{msg-mw|mw-widgets-abandonedit-discard}}.", + "mw-widgets-abandonedit-title": "Title of the dialog shown when the user tries to leave the editor without saving their changes.\n\nFollowed by the following buttons:\n* {{msg-mw|mw-widgets-abandonedit-discard}}\n* {{msg-mw|mw-widgets-abandonedit-keep}}\n{{Identical|Are you sure?}}", "mw-widgets-dateinput-no-date": "Label of a date input field when no date has been selected.", "mw-widgets-dateinput-placeholder-day": "[[File:DateInputWidget active, empty.png|frame|Screenshot]]\nPlaceholder displayed in a date input field when it's empty, representing a date format with 4 digits for year, 2 digits for month, and 2 digits for day, separated with hyphens. This should be uppercase, if possible, and must not include any additional explanations. If there is no good way to translate it, make this message blank.", "mw-widgets-dateinput-placeholder-month": "Placeholder displayed in a date input field when it's empty, representing a date format with 4 digits for year and 2 digits for month, separated with hyphens (without a day). This should be uppercase, if possible, and must not include any additional explanations. If there is no good way to translate it, make this message blank.", diff --git a/resources/Resources.php b/resources/Resources.php index d66491d907..b0737e8a4f 100644 --- a/resources/Resources.php +++ b/resources/Resources.php @@ -2483,10 +2483,10 @@ return [ 'resources/src/mediawiki.widgets/mw.widgets.AbandonEditDialog.js', ], 'messages' => [ - 'visualeditor-viewpage-savewarning', - 'visualeditor-viewpage-savewarning-discard', - 'visualeditor-viewpage-savewarning-keep', - 'visualeditor-viewpage-savewarning-title', + 'mw-widgets-abandonedit', + 'mw-widgets-abandonedit-discard', + 'mw-widgets-abandonedit-keep', + 'mw-widgets-abandonedit-title', ], 'dependencies' => [ 'oojs-ui-windows', diff --git a/resources/src/mediawiki.widgets/mw.widgets.AbandonEditDialog.js b/resources/src/mediawiki.widgets/mw.widgets.AbandonEditDialog.js index 3244379874..71793d91f6 100644 --- a/resources/src/mediawiki.widgets/mw.widgets.AbandonEditDialog.js +++ b/resources/src/mediawiki.widgets/mw.widgets.AbandonEditDialog.js @@ -28,12 +28,12 @@ OO.inheritClass( mw.widgets.AbandonEditDialog, OO.ui.MessageDialog ); mw.widgets.AbandonEditDialog.static.name = 'abandonedit'; mw.widgets.AbandonEditDialog.static.title = - OO.ui.deferMsg( 'visualeditor-viewpage-savewarning-title' ); + OO.ui.deferMsg( 'mw-widgets-abandonedit-title' ); mw.widgets.AbandonEditDialog.static.message = - OO.ui.deferMsg( 'visualeditor-viewpage-savewarning' ); + OO.ui.deferMsg( 'mw-widgets-abandonedit' ); mw.widgets.AbandonEditDialog.static.actions = [ - { action: 'discard', label: OO.ui.deferMsg( 'visualeditor-viewpage-savewarning-discard' ), flags: [ 'primary', 'destructive' ] }, - { action: 'keep', label: OO.ui.deferMsg( 'visualeditor-viewpage-savewarning-keep' ), flags: 'safe' } + { action: 'discard', label: OO.ui.deferMsg( 'mw-widgets-abandonedit-discard' ), flags: [ 'primary', 'destructive' ] }, + { action: 'keep', label: OO.ui.deferMsg( 'mw-widgets-abandonedit-keep' ), flags: 'safe' } ]; -- 2.20.1