DevTools: Update Snippets context menu text

Ported from CL
https://chromium-review.googlesource.com/c/chromium/src/+/1854244

Update Snippets menu text from "New" to "Create new snippet" to improve
the context of the action and localizability.

https://imgur.com/a/2rbupBD

Bug: 941561
Change-Id: I4dbfc2307c83e5714d81364c6b4e55402583dcdf
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1874338
Reviewed-by: Lorne Mitchell <lomitch@microsoft.com>
Commit-Queue: Christy Chen <chrche@microsoft.com>
This commit is contained in:
Christy Chen
2019-10-23 00:03:22 +00:00
committed by Commit Bot
parent 57f033561f
commit af5fdf3a96
2 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -266,7 +266,7 @@ Sources.SnippetsNavigatorView = class extends Sources.NavigatorView {
*/
handleContextMenu(event) {
const contextMenu = new UI.ContextMenu(event);
contextMenu.headerSection().appendItem(Common.UIString('New'), () => this.create(Snippets.project, ''));
contextMenu.headerSection().appendItem(ls`Create new snippet`, () => this.create(Snippets.project, ''));
contextMenu.show();
}
-3
View File
@@ -12,9 +12,6 @@
<message name="IDS_DEVTOOLS_03bfaee27b3b5cfb28deef84a0f416e5" desc="Title of the sources threads">
Threads
</message>
<message name="IDS_DEVTOOLS_03c2e7e41ffc181a4e84080b4710e81e" desc="A context menu item in the Sources Navigator of the Sources panel">
New
</message>
<message name="IDS_DEVTOOLS_05184fe2fb6c76214bc56796837f1c9b" desc="Title of an action in the debugger tool to next call frame">
Next call frame
</message>