Commit ca154d6f authored by Mandy Chen's avatar Mandy Chen Committed by Commit Bot

DevTools: Localize default snippet name in Source panel

Wrap a user facing string in ls so it's localizable.

Bug: 941561
Change-Id: If4285af49d7fd3ca8b2b7c2a447c35900e9efae5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1793748
Commit-Queue: Mandy Chen <mandy.chen@microsoft.com>
Reviewed-by: default avatarYang Guo <yangguo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#697733}
parent 3f45231d
......@@ -28,7 +28,7 @@ Snippets.SnippetFileSystem = class extends Persistence.PlatformFileSystem {
const nextId = this._lastSnippetIdentifierSetting.get() + 1;
this._lastSnippetIdentifierSetting.set(nextId);
const snippetName = `Script snippet #${nextId}`;
const snippetName = ls`Script snippet #${nextId}`;
const snippets = this._snippetsSetting.get();
snippets.push({name: snippetName, content: ''});
this._snippetsSetting.set(snippets);
......
<?xml version="1.0" encoding="utf-8"?>
<grit-part>
<message name="IDS_DEVTOOLS_a8c377be97611cba090c400b4b54f753" desc="Default snippet name when a new snippet is created in the Sources panel">
Script snippet #<ph name="NEXTID">$1s<ex>1</ex></ph>
</message>
<message name="IDS_DEVTOOLS_e0fe9b9cadde935642ad15a85c79d7b1" desc="Text in Snippets Quick Open of the Sources panel when opening snippets">
No snippets found.
</message>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment