Bug 1558417 - Add onboarding UI for Editor. r=Honza.
authorNicolas Chevobbe <nchevobbe@mozilla.com>
Wed, 28 Aug 2019 11:47:49 +0000
changeset 11993 6e1834cece93e60961d039fd4905a57595f3eb07
parent 11992 cb9d84364ffd2a4441749894dd7b024548b50e7a
child 11994 ecc5a68ca5fe99fd1b16e0dae69f935589723ac8
push id172
push userflodolo@mozilla.com
push dateFri, 30 Aug 2019 05:08:04 +0000
reviewersHonza
bugs1558417
Bug 1558417 - Add onboarding UI for Editor. r=Honza. The onboarding UI is displayed on top of the Editor. A dismiss button hides it forever (this is handled via a pref that is set to false when clicking the button). We take this as an opportunity to polish the Editor UI/wording a bit. Differential Revision: https://phabricator.services.mozilla.com/D43621 X-Channel-Repo: mozilla-central X-Channel-Converted-Revision: 9aa911cc3fcf58e031540b5161f3f4032ce9567a X-Channel-Repo: releases/mozilla-beta X-Channel-Revision: 9b31bfdfac102bced19d7e9b4a507bbf1ffc3b71 X-Channel-Repo: releases/mozilla-release X-Channel-Revision: b19ffb3ca153242cc668db6549940b421f176d4b X-Channel-Repo: releases/mozilla-esr68 X-Channel-Revision: 6da286bb33b5cee90f383d21b5835e81a4709388
devtools/client/webconsole.properties
--- a/devtools/client/webconsole.properties
+++ b/devtools/client/webconsole.properties
@@ -458,16 +458,44 @@ webconsole.editor.toolbar.history.nextEx
 webconsole.editor.toolbar.closeButton.tooltip=Close Editor (%S)
 
 # LOCALIZATION NOTE (webconsole.input.openEditorButton.tooltip)
 # Label used for the tooltip on the open editor button, in console input, which is
 # displayed when the console is in regular mode.
 # Parameters: %S is the keyboard shortcut.
 webconsole.input.openEditorButton.tooltip=Open Editor (%S)
 
+# LOCALIZATION NOTE (webconsole.editor.toolbar.closeButton.tooltip2)
+# Label used for the tooltip on the close button, in the editor toolbar, which is
+# displayed when the editor mode is enabled (devtools.webconsole.input.editor=true).
+# Parameters: %S is the keyboard shortcut.
+webconsole.editor.toolbar.closeButton.tooltip2=Switch back to inline mode (%S)
+
+# LOCALIZATION NOTE (webconsole.input.openEditorButton.tooltip2)
+# Label used for the tooltip on the open editor button, in console input, which is
+# displayed when the console is in regular mode.
+# Parameters: %S is the keyboard shortcut.
+webconsole.input.openEditorButton.tooltip2=Switch to multi-line editor mode (%S)
+
 # LOCALIZATION NOTE (webconsole.warningGroup.messageCount.tooltip): the tooltip text
 # displayed when you hover a warning group badge (i.e. repeated warning messages for a
 # given category, for example Content Blocked messages) in the web console output.
 # This is a semi-colon list of plural forms.
 # See: http://developer.mozilla.org/en/docs/Localization_and_Plurals
 # #1 number of message in the group.
 # example: 3 messages
 webconsole.warningGroup.messageCount.tooltip=#1 message;#1 messages
+
+# LOCALIZATION NOTE (webconsole.input.editor.onboarding.label): the text that is displayed
+# when displaying the multiline-input mode for the first time, until the user dismiss the
+# text.
+# Parameters: %1$S is Enter key, %2$S is the shorcut to evaluate the expression (
+# Ctrl+Enter or Cmd+Enter on OSX).
+webconsole.input.editor.onboarding.label=Iterate on your code faster with the new multi-line editor mode. Use %1$S to add new lines and %2$S to run.
+
+# LOCALIZATION NOTE (webconsole.input.editor.onboarding.dissmis.label): the text that is
+# displayed in the multiline-input mode onboarding UI to dismiss it.
+webconsole.input.editor.onboarding.dissmis.label=Got it!
+
+# LOCALIZATION NOTE (webconsole.enterKey): The text that will be used to represent the
+# Enter key in the editor onboarding UI, as well as on the Editor toolbar "Run" button
+# tooltip.
+webconsole.enterKey=Enter