Ensure consistent UI Strings in front_end/models/workspace Summary of changes: - Add terminal periods to localization comments in IgnoreListManager and UISourceCode. - Re-word 'Call Stack Sidebar Pane' to 'Call Stack sidebar' to follow DevTools UI terminology. - Re-word 'UISource Code' to 'UISourceCode' in localization comment. - Simplify file external change prompt by removing unnecessary words and politeness in UISourceCode. Fixed: 531626575 TAG=agy CONV=c0faad9d-ab89-401c-ba4a-e82c0ec15d3c Change-Id: I70fe766d0b857452da148f44be1aeee4373ca51c Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/8066824 Commit-Queue: Simon Zünd <szuend@chromium.org> Reviewed-by: Simon Zünd <szuend@chromium.org> Auto-Submit: Yang Guo <yangguo@chromium.org>
diff --git a/front_end/models/workspace/IgnoreListManager.ts b/front_end/models/workspace/IgnoreListManager.ts index 09a9a2f..b516ab9 100644 --- a/front_end/models/workspace/IgnoreListManager.ts +++ b/front_end/models/workspace/IgnoreListManager.ts
@@ -13,27 +13,27 @@ const UIStrings = { /** - * @description Text to stop preventing the debugger from stepping into library code + * @description Text to stop preventing the debugger from stepping into library code. */ removeFromIgnoreList: 'Remove from ignore list', /** - * @description Text for scripts that should not be stepped into when debugging + * @description Text for scripts that should not be stepped into when debugging. */ addScriptToIgnoreList: 'Add script to ignore list', /** - * @description Text for directories whose scripts should not be stepped into when debugging + * @description Text for directories whose scripts should not be stepped into when debugging. */ addDirectoryToIgnoreList: 'Add directory to ignore list', /** - * @description A context menu item in the Call Stack Sidebar Pane of the Sources panel + * @description A context menu item in the Call Stack sidebar of the Sources panel. */ addAllContentScriptsToIgnoreList: 'Add all extension scripts to ignore list', /** - * @description A context menu item in the Call Stack Sidebar Pane of the Sources panel + * @description A context menu item in the Call Stack sidebar of the Sources panel. */ addAllThirdPartyScriptsToIgnoreList: 'Add all third-party scripts to ignore list', /** - * @description A context menu item in the Call Stack Sidebar Pane of the Sources panel + * @description A context menu item in the Call Stack sidebar of the Sources panel. */ addAllAnonymousScriptsToIgnoreList: 'Add all anonymous scripts to ignore list', } as const;
diff --git a/front_end/models/workspace/UISourceCode.ts b/front_end/models/workspace/UISourceCode.ts index 0a4266b..01a84c9 100644 --- a/front_end/models/workspace/UISourceCode.ts +++ b/front_end/models/workspace/UISourceCode.ts
@@ -14,13 +14,13 @@ const UIStrings = { /** - * @description Text for the index of something + * @description Text for the index of something. */ index: '(index)', /** - * @description Text in UISource Code of the DevTools local workspace + * @description Text in UISourceCode of the DevTools local workspace. */ - thisFileWasChangedExternally: 'This file was changed externally. Would you like to reload it?', + thisFileWasChangedExternally: 'This file was changed externally. Reload?', } as const; const str_ = i18n.i18n.registerUIStrings('models/workspace/UISourceCode.ts', UIStrings); const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);