Changeset 245060 in webkit
- Timestamp:
- May 8, 2019 10:44:47 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r244952 r245060 1 2019-05-08 Ryan Haddad <ryanhaddad@apple.com> 2 3 Unreviewed, rolling out r244952. 4 5 Caused inspector to appear blank. 6 7 Reverted changeset: 8 9 "Web Inspector: Provide UIString descriptions to improve 10 localizations" 11 https://bugs.webkit.org/show_bug.cgi?id=195132 12 https://trac.webkit.org/changeset/244952 13 1 14 2019-05-04 Nikita Vasilyev <nvasilyev@apple.com> 2 15 -
trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js
r244952 r245060 98 98 localizedStrings["All"] = "All"; 99 99 localizedStrings["All Changes"] = "All Changes"; 100 /* Break (pause) on all exceptions */101 100 localizedStrings["All Exceptions"] = "All Exceptions"; 102 101 localizedStrings["All Layers"] = "All Layers"; 103 /* A submenu item of 'Break on' that breaks (pauses) before all network requests */104 102 localizedStrings["All Requests"] = "All Requests"; 105 103 localizedStrings["All Resources"] = "All Resources"; … … 130 128 localizedStrings["Assertion Failed"] = "Assertion Failed"; 131 129 localizedStrings["Assertion Failed: %s"] = "Assertion Failed: %s"; 132 /* Break (pause) when console.assert() fails */133 130 localizedStrings["Assertion Failures"] = "Assertion Failures"; 134 131 localizedStrings["Assertion with message: %s"] = "Assertion with message: %s"; … … 137 134 localizedStrings["Async audits are not supported."] = "Async audits are not supported."; 138 135 localizedStrings["Attribute"] = "Attribute"; 139 /* A submenu item of 'Break On' that breaks (pauses) before DOM attribute is modified */140 136 localizedStrings["Attribute Modified"] = "Attribute Modified"; 141 137 localizedStrings["Attributes"] = "Attributes"; … … 201 197 localizedStrings["Canvas Element"] = "Canvas Element"; 202 198 localizedStrings["Canvases"] = "Canvases"; 203 /* Capture screenshot of the selected DOM node */204 199 localizedStrings["Capture Screenshot"] = "Capture Screenshot"; 205 200 localizedStrings["Capturing"] = "Capturing"; … … 215 210 localizedStrings["Charge \u201C%s\u201D to Callers"] = "Charge \u201C%s\u201D to Callers"; 216 211 localizedStrings["Checked"] = "Checked"; 217 /* A submenu item of 'Add' to append DOM nodes to the selected DOM node */218 212 localizedStrings["Child"] = "Child"; 219 213 localizedStrings["Child Layers"] = "Child Layers"; … … 250 244 localizedStrings["Compare snapshots"] = "Compare snapshots"; 251 245 localizedStrings["Comparison of total memory size at the end of the selected time range to the maximum memory size in this recording"] = "Comparison of total memory size at the end of the selected time range to the maximum memory size in this recording"; 252 /* Composite phase timeline records, where graphic layers are combined */ 253 localizedStrings["Composite @ Timeline record"] = "Composite"; 246 localizedStrings["Composite"] = "Composite"; 254 247 localizedStrings["Composited"] = "Composited"; 255 248 localizedStrings["Compressed"] = "Compressed"; … … 471 464 localizedStrings["Failed to upgrade"] = "Failed to upgrade"; 472 465 localizedStrings["Failure status code"] = "Failure status code"; 473 /* Resource loaded via 'fetch' method */474 466 localizedStrings["Fetch"] = "Fetch"; 475 /* Resources loaded via 'fetch' method */476 467 localizedStrings["Fetches"] = "Fetches"; 477 468 localizedStrings["File or Resource"] = "File or Resource"; … … 490 481 localizedStrings["Force Light Appearance"] = "Force Light Appearance"; 491 482 localizedStrings["Force Print Media Styles"] = "Force Print Media Styles"; 492 /* Layout phase records that were imperative (forced) */493 483 localizedStrings["Forced Layout"] = "Forced Layout"; 494 /* A context menu item to force (override) a DOM node's pseudo-classes */495 484 localizedStrings["Forced Pseudo-Classes"] = "Forced Pseudo-Classes"; 496 485 localizedStrings["Format: HSL"] = "Format: HSL"; … … 582 571 localizedStrings["Info: "] = "Info: "; 583 572 localizedStrings["Infos"] = "Infos"; 584 /* A section of CSS rules matching an ancestor DOM node */585 573 localizedStrings["Inherited From"] = "Inherited From"; 586 574 localizedStrings["Initial State"] = "Initial State"; … … 611 599 localizedStrings["Layers"] = "Layers"; 612 600 localizedStrings["Layers:"] = "Layers:"; 601 localizedStrings["Layout"] = "Layout"; 613 602 localizedStrings["Layout & Rendering"] = "Layout & Rendering"; 614 /* Layout phase timeline records */615 localizedStrings["Layout @ Timeline record"] = "Layout";616 603 localizedStrings["Layout Invalidated"] = "Layout Invalidated"; 617 604 localizedStrings["Line %d"] = "Line %d"; … … 631 618 localizedStrings["Location"] = "Location"; 632 619 localizedStrings["Log Canvas Context"] = "Log Canvas Context"; 633 /* Log (print) DOM element to Console */634 620 localizedStrings["Log Element"] = "Log Element"; 635 621 localizedStrings["Log Frame Text"] = "Log Frame Text"; 636 622 localizedStrings["Log Frame Value"] = "Log Frame Value"; 637 623 localizedStrings["Log Message"] = "Log Message"; 638 /* Log (print) DOM node to Console */639 624 localizedStrings["Log Node"] = "Log Node"; 640 625 localizedStrings["Log Symbol"] = "Log Symbol"; … … 680 665 localizedStrings["Network Requests:"] = "Network Requests:"; 681 666 localizedStrings["New Tab"] = "New Tab"; 682 /* A submenu item of 'Add' to add DOM nodes after the selected DOM node */683 667 localizedStrings["Next Sibling"] = "Next Sibling"; 684 668 localizedStrings["No"] = "No"; … … 721 705 localizedStrings["No response headers"] = "No response headers"; 722 706 localizedStrings["Node"] = "Node"; 723 /* A submenu item of 'Break On' that breaks (pauses) before DOM node is removed */724 707 localizedStrings["Node Removed"] = "Node Removed"; 725 708 localizedStrings["Nodes"] = "Nodes"; … … 761 744 localizedStrings["Page navigated at %s"] = "Page navigated at %s"; 762 745 localizedStrings["Page reloaded at %s"] = "Page reloaded at %s"; 763 /* Paint (render) phase timeline records */ 764 localizedStrings["Paint @ Timeline record"] = "Paint"; 746 localizedStrings["Paint"] = "Paint"; 765 747 localizedStrings["Paints"] = "Paints"; 766 /* A count of how many times an element was painted (rendered) */767 localizedStrings["Paints @ Column title"] = "Paints";768 748 localizedStrings["Parent"] = "Parent"; 769 749 localizedStrings["Partial Garbage Collection"] = "Partial Garbage Collection"; … … 795 775 localizedStrings["Pretty print"] = "Pretty print"; 796 776 localizedStrings["Preview"] = "Preview"; 797 /* A submenu item of 'Add' to add DOM nodes before the selected DOM node */798 777 localizedStrings["Previous Sibling"] = "Previous Sibling"; 799 778 localizedStrings["Primary Key"] = "Primary Key"; … … 883 862 localizedStrings["Return value is not an object, string, or boolean"] = "Return value is not an object, string, or boolean"; 884 863 localizedStrings["Reveal Breakpoint"] = "Reveal Breakpoint"; 885 /* Open Elements tab and select this node in DOM tree */886 864 localizedStrings["Reveal in DOM Tree"] = "Reveal in DOM Tree"; 887 865 localizedStrings["Reveal in Debugger Tab"] = "Reveal in Debugger Tab"; 888 866 localizedStrings["Reveal in Elements Tab"] = "Reveal in Elements Tab"; 889 /* Open Layers tab and select the layer corresponding to this node */890 867 localizedStrings["Reveal in Layers Tab"] = "Reveal in Layers Tab"; 891 868 localizedStrings["Reveal in Network Tab"] = "Reveal in Network Tab"; … … 916 893 localizedStrings["Script Evaluated"] = "Script Evaluated"; 917 894 localizedStrings["Scripts"] = "Scripts"; 918 /* Scroll selected DOM node into view on the inspected web page */ 919 localizedStrings["Scroll into View"] = "Scroll into View"; 895 localizedStrings["Scroll Into View"] = "Scroll Into View"; 920 896 localizedStrings["Search"] = "Search"; 921 897 localizedStrings["Search Again"] = "Search Again"; … … 932 908 localizedStrings["Selected"] = "Selected"; 933 909 localizedStrings["Selected Canvas Context"] = "Selected Canvas Context"; 934 /* Selected DOM element */935 910 localizedStrings["Selected Element"] = "Selected Element"; 936 911 localizedStrings["Selected Frame"] = "Selected Frame"; 937 912 localizedStrings["Selected Item"] = "Selected Item"; 938 913 localizedStrings["Selected Items"] = "Selected Items"; 939 /* Selected DOM node */940 914 localizedStrings["Selected Node"] = "Selected Node"; 941 915 localizedStrings["Selected Symbol"] = "Selected Symbol"; … … 1038 1012 localizedStrings["Stopping the \u201C%s\u201D audit"] = "Stopping the \u201C%s\u201D audit"; 1039 1013 localizedStrings["Storage"] = "Storage"; 1040 /* CSS properties defined via HTML style attribute */1041 1014 localizedStrings["Style Attribute"] = "Style Attribute"; 1042 1015 localizedStrings["Style Resolution"] = "Style Resolution"; … … 1051 1024 localizedStrings["Stylesheets"] = "Stylesheets"; 1052 1025 localizedStrings["Subject"] = "Subject"; 1053 /* A submenu item of 'Break On' that breaks (pauses) before child DOM node is modified */1054 1026 localizedStrings["Subtree Modified"] = "Subtree Modified"; 1055 1027 localizedStrings["Summary"] = "Summary"; … … 1058 1030 localizedStrings["Tab width:"] = "Tab width:"; 1059 1031 localizedStrings["Tabs"] = "Tabs"; 1060 /* A submenu item of 'Edit' to change DOM element's tag name */1061 1032 localizedStrings["Tag"] = "Tag"; 1062 1033 localizedStrings["Take snapshot"] = "Take snapshot"; … … 1121 1092 localizedStrings["Trace"] = "Trace"; 1122 1093 localizedStrings["Trace: %s"] = "Trace: %s"; 1123 /* Amount of data sent over the network for a single resource */1124 1094 localizedStrings["Transfer Size"] = "Transfer Size"; 1125 1095 localizedStrings["Transferred"] = "Transferred"; … … 1136 1106 localizedStrings["Unable to parse as JSON: %s"] = "Unable to parse as JSON: %s"; 1137 1107 localizedStrings["Unable to show certificate for \u201C%s\u201D"] = "Unable to show certificate for \u201C%s\u201D"; 1138 /* Break (pause) on uncaught (unhandled) exceptions */1139 1108 localizedStrings["Uncaught Exceptions"] = "Uncaught Exceptions"; 1140 1109 localizedStrings["Undefined custom element"] = "Undefined custom element"; -
trunk/Source/WebInspectorUI/UserInterface/Base/LoadLocalizedStrings.js
r244952 r245060 44 44 WI.UIString = function(string, key, comment) 45 45 { 46 "use strict";47 48 46 if (WI.dontLocalizeUserInterface) 49 47 return string; 50 51 // UIString(string, comment)52 if (arguments.length === 2) {53 comment = key;54 key = undefined;55 }56 48 57 49 key = key || string; … … 73 65 return "LOCALIZED STRING NOT FOUND"; 74 66 }; 75 76 WI.repeatedUIString = {};77 78 WI.repeatedUIString.timelineRecordLayout = function() {79 return WI.UIString("Layout", "Layout @ Timeline record", "Layout phase timeline records");80 };81 82 WI.repeatedUIString.timelineRecordPaint = function() {83 return WI.UIString("Paint", "Paint @ Timeline record", "Paint (render) phase timeline records");84 };85 86 WI.repeatedUIString.timelineRecordComposite = function() {87 return WI.UIString("Composite", "Composite @ Timeline record", "Composite phase timeline records, where graphic layers are combined");88 };89 90 WI.repeatedUIString.allExceptions = function() {91 return WI.UIString("All Exceptions", "Break (pause) on all exceptions");92 };93 94 WI.repeatedUIString.uncaughtExceptions = function() {95 return WI.UIString("Uncaught Exceptions", "Break (pause) on uncaught (unhandled) exceptions");96 };97 98 WI.repeatedUIString.assertionFailures = function() {99 return WI.UIString("Assertion Failures", "Break (pause) when console.assert() fails");100 };101 102 WI.repeatedUIString.allRequests = function() {103 return WI.UIString("All Requests", "A submenu item of 'Break on' that breaks (pauses) before all network requests");104 };105 106 WI.repeatedUIString.fetch = function() {107 return WI.UIString("Fetch", "Resource loaded via 'fetch' method");108 };109 110 WI.repeatedUIString.revealInDOMTree = function() {111 return WI.UIString("Reveal in DOM Tree", "Open Elements tab and select this node in DOM tree");112 }; -
trunk/Source/WebInspectorUI/UserInterface/Models/LayoutTimelineRecord.js
r244952 r245060 52 52 return WI.UIString("Layout Invalidated"); 53 53 case WI.LayoutTimelineRecord.EventType.ForcedLayout: 54 return WI.UIString("Forced Layout" , "Layout phase records that were imperative (forced)");54 return WI.UIString("Forced Layout"); 55 55 case WI.LayoutTimelineRecord.EventType.Layout: 56 return WI. repeatedUIString.timelineRecordLayout();56 return WI.UIString("Layout"); 57 57 case WI.LayoutTimelineRecord.EventType.Paint: 58 return WI. repeatedUIString.timelineRecordPaint();58 return WI.UIString("Paint"); 59 59 case WI.LayoutTimelineRecord.EventType.Composite: 60 return WI. repeatedUIString.timelineRecordComposite();60 return WI.UIString("Composite"); 61 61 } 62 62 } -
trunk/Source/WebInspectorUI/UserInterface/Models/RenderingFrameTimelineRecord.js
r244952 r245060 47 47 return WI.UIString("Script"); 48 48 case WI.RenderingFrameTimelineRecord.TaskType.Layout: 49 return WI. repeatedUIString.timelineRecordLayout();49 return WI.UIString("Layout"); 50 50 case WI.RenderingFrameTimelineRecord.TaskType.Paint: 51 return WI. repeatedUIString.timelineRecordPaint();51 return WI.UIString("Paint"); 52 52 case WI.RenderingFrameTimelineRecord.TaskType.Other: 53 53 return WI.UIString("Other"); -
trunk/Source/WebInspectorUI/UserInterface/Models/Resource.js
r244952 r245060 157 157 case WI.Resource.Type.Fetch: 158 158 if (plural) 159 return WI.UIString("Fetches" , "Resources loaded via 'fetch' method");160 return WI. repeatedUIString.fetch();159 return WI.UIString("Fetches"); 160 return WI.UIString("Fetch"); 161 161 case WI.Resource.Type.Ping: 162 162 if (plural) -
trunk/Source/WebInspectorUI/UserInterface/Views/AuditTestGroupContentView.js
r244952 r245060 126 126 }; 127 127 128 addScopeBarItem(WI.AuditTestCaseResult.Level.Pass, WI.UIString("%d Passed", "%d Passed (singular)" , ""), WI.UIString("%d Passed", "%d Passed (plural)", ""));128 addScopeBarItem(WI.AuditTestCaseResult.Level.Pass, WI.UIString("%d Passed", "%d Passed (singular)"), WI.UIString("%d Passed", "%d Passed (plural)")); 129 129 addScopeBarItem(WI.AuditTestCaseResult.Level.Warn, WI.UIString("%d Warning"), WI.UIString("%d Warnings")); 130 addScopeBarItem(WI.AuditTestCaseResult.Level.Fail, WI.UIString("%d Failed", "%d Failed (singular)" , ""), WI.UIString("%d Failed", "%d Failed (plural)", ""));130 addScopeBarItem(WI.AuditTestCaseResult.Level.Fail, WI.UIString("%d Failed", "%d Failed (singular)"), WI.UIString("%d Failed", "%d Failed (plural)")); 131 131 addScopeBarItem(WI.AuditTestCaseResult.Level.Error, WI.UIString("%d Error"), WI.UIString("%d Errors")); 132 addScopeBarItem(WI.AuditTestCaseResult.Level.Unsupported, WI.UIString("%d Unsupported", "%d Unsupported (singular)" , ""), WI.UIString("%d Unsupported", "%d Unsupported (plural)", ""));132 addScopeBarItem(WI.AuditTestCaseResult.Level.Unsupported, WI.UIString("%d Unsupported", "%d Unsupported (singular)"), WI.UIString("%d Unsupported", "%d Unsupported (plural)")); 133 133 134 134 this._levelScopeBar = new WI.ScopeBar(null, scopeBarItems); -
trunk/Source/WebInspectorUI/UserInterface/Views/CPUTimelineView.js
r244952 r245060 58 58 return WI.UIString("Script"); 59 59 case WI.CPUTimelineView.SampleType.Layout: 60 return WI. repeatedUIString.timelineRecordLayout();60 return WI.UIString("Layout"); 61 61 case WI.CPUTimelineView.SampleType.Paint: 62 return WI. repeatedUIString.timelineRecordPaint();62 return WI.UIString("Paint"); 63 63 case WI.CPUTimelineView.SampleType.Style: 64 64 return WI.UIString("Style Resolution"); -
trunk/Source/WebInspectorUI/UserInterface/Views/ContextMenuUtilities.js
r244952 r245060 217 217 218 218 if (!options.excludeLogElement && !domNode.isInUserAgentShadowTree() && !domNode.isPseudoElement()) { 219 let label = isElement ? WI.UIString("Log Element" , "Log (print) DOM element to Console") : WI.UIString("Log Node", "Log (print) DOM node to Console");219 let label = isElement ? WI.UIString("Log Element") : WI.UIString("Log Node"); 220 220 contextMenu.appendItem(label, () => { 221 221 WI.RemoteObject.resolveNode(domNode, WI.RuntimeManager.ConsoleObjectGroup).then((remoteObject) => { 222 let text = isElement ? WI.UIString("Selected Element" , "Selected DOM element") : WI.UIString("Selected Node", "Selected DOM node");222 let text = isElement ? WI.UIString("Selected Element") : WI.UIString("Selected Node"); 223 223 const addSpecialUserLogClass = true; 224 224 WI.consoleLogViewController.appendImmediateExecutionWithResult(text, remoteObject, addSpecialUserLogClass); … … 228 228 229 229 if (!options.excludeRevealElement && window.DOMAgent && attached) { 230 contextMenu.appendItem(WI. repeatedUIString.revealInDOMTree(), () => {230 contextMenu.appendItem(WI.UIString("Reveal in DOM Tree"), () => { 231 231 WI.domManager.inspectElement(domNode.id); 232 232 }); … … 234 234 235 235 if (WI.settings.experimentalEnableLayersTab.value && window.LayerTreeAgent && attached) { 236 contextMenu.appendItem(WI.UIString("Reveal in Layers Tab" , "Open Layers tab and select the layer corresponding to this node"), () => {236 contextMenu.appendItem(WI.UIString("Reveal in Layers Tab"), () => { 237 237 WI.showLayersTab({nodeToSelect: domNode}); 238 238 }); … … 240 240 241 241 if (window.PageAgent && attached) { 242 contextMenu.appendItem(WI.UIString("Capture Screenshot" , "Capture screenshot of the selected DOM node"), () => {242 contextMenu.appendItem(WI.UIString("Capture Screenshot"), () => { 243 243 PageAgent.snapshotNode(domNode.id, (error, dataURL) => { 244 244 if (error) { … … 263 263 264 264 if (isElement && attached) { 265 contextMenu.appendItem(WI.UIString("Scroll into View", "Scroll selected DOM node into view on the inspected web page"), () => {265 contextMenu.appendItem(WI.UIString("Scroll Into View"), () => { 266 266 domNode.scrollIntoView(); 267 267 }); -
trunk/Source/WebInspectorUI/UserInterface/Views/DOMBreakpointTreeElement.js
r244952 r245060 51 51 switch (type) { 52 52 case WI.DOMBreakpoint.Type.SubtreeModified: 53 return WI.UIString("Subtree Modified" , "A submenu item of 'Break On' that breaks (pauses) before child DOM node is modified");53 return WI.UIString("Subtree Modified"); 54 54 case WI.DOMBreakpoint.Type.AttributeModified: 55 return WI.UIString("Attribute Modified" , "A submenu item of 'Break On' that breaks (pauses) before DOM attribute is modified");55 return WI.UIString("Attribute Modified"); 56 56 case WI.DOMBreakpoint.Type.NodeRemoved: 57 return WI.UIString("Node Removed" , "A submenu item of 'Break On' that breaks (pauses) before DOM node is removed");57 return WI.UIString("Node Removed"); 58 58 default: 59 59 console.error("Unexpected DOM breakpoint type: " + type); -
trunk/Source/WebInspectorUI/UserInterface/Views/DOMNodeTreeElement.js
r244952 r245060 62 62 contextMenu.appendSeparator(); 63 63 64 contextMenu.appendItem(WI. repeatedUIString.revealInDOMTree(), () => {64 contextMenu.appendItem(WI.UIString("Reveal in DOM Tree"), () => { 65 65 WI.domManager.inspectElement(this.representedObject.id); 66 66 }); -
trunk/Source/WebInspectorUI/UserInterface/Views/DOMTreeElement.js
r244952 r245060 778 778 }, !attribute || !isNonShadowEditable); 779 779 780 subMenus.edit.appendItem(WI.UIString("Tag" , "A submenu item of 'Edit' to change DOM element's tag name"), () => {780 subMenus.edit.appendItem(WI.UIString("Tag"), () => { 781 781 this._startEditingTagName(); 782 782 }, !isNonShadowEditable); … … 785 785 786 786 if (WI.cssManager.canForcePseudoClasses() && attached) { 787 let pseudoSubMenu = contextMenu.appendSubMenuItem(WI.UIString("Forced Pseudo-Classes" , "A context menu item to force (override) a DOM node's pseudo-classes"));787 let pseudoSubMenu = contextMenu.appendSubMenuItem(WI.UIString("Forced Pseudo-Classes")); 788 788 789 789 let enabledPseudoClasses = node.enabledPseudoClasses; … … 816 816 let isEditableNode = node.nodeType() === Node.ELEMENT_NODE && this.editable; 817 817 let forbiddenClosingTag = WI.DOMTreeElement.ForbiddenClosingTagElements.has(node.nodeNameInCorrectCase()); 818 subMenus.add.appendItem(WI.UIString("Child" , "A submenu item of 'Add' to append DOM nodes to the selected DOM node"), this._addHTML.bind(this), forbiddenClosingTag || !isEditableNode);819 subMenus.add.appendItem(WI.UIString("Previous Sibling" , "A submenu item of 'Add' to add DOM nodes before the selected DOM node"), this._addPreviousSibling.bind(this), !isEditableNode);820 subMenus.add.appendItem(WI.UIString("Next Sibling" , "A submenu item of 'Add' to add DOM nodes after the selected DOM node"), this._addNextSibling.bind(this), !isEditableNode);818 subMenus.add.appendItem(WI.UIString("Child"), this._addHTML.bind(this), forbiddenClosingTag || !isEditableNode); 819 subMenus.add.appendItem(WI.UIString("Previous Sibling"), this._addPreviousSibling.bind(this), !isEditableNode); 820 subMenus.add.appendItem(WI.UIString("Next Sibling"), this._addNextSibling.bind(this), !isEditableNode); 821 821 822 822 subMenus.edit.appendItem(WI.UIString("HTML"), this._editAsHTML.bind(this), !this.editable); -
trunk/Source/WebInspectorUI/UserInterface/Views/DebuggerSidebarPanel.js
r244952 r245060 475 475 if (breakpoint === WI.debuggerManager.allExceptionsBreakpoint) { 476 476 options.className = WI.DebuggerSidebarPanel.ExceptionIconStyleClassName; 477 options.title = WI. repeatedUIString.allExceptions();477 options.title = WI.UIString("All Exceptions"); 478 478 } else if (breakpoint === WI.debuggerManager.uncaughtExceptionsBreakpoint) { 479 479 options.className = WI.DebuggerSidebarPanel.ExceptionIconStyleClassName; 480 options.title = WI. repeatedUIString.uncaughtExceptions();480 options.title = WI.UIString("Uncaught Exceptions"); 481 481 } else if (breakpoint === WI.debuggerManager.assertionFailuresBreakpoint) { 482 482 options.className = WI.DebuggerSidebarPanel.AssertionIconStyleClassName; 483 options.title = WI. repeatedUIString.assertionFailures();483 options.title = WI.UIString("Assertion Failures"); 484 484 } else if (breakpoint instanceof WI.DOMBreakpoint) { 485 485 if (!breakpoint.domNodeIdentifier) … … 515 515 if (breakpoint === WI.domDebuggerManager.allRequestsBreakpoint) { 516 516 options.className = WI.DebuggerSidebarPanel.AssertionIconStyleClassName; 517 options.title = WI. repeatedUIString.allRequests();517 options.title = WI.UIString("All Requests"); 518 518 } 519 519 } else { … … 1458 1458 let assertionFailuresBreakpointShown = WI.settings.showAssertionFailuresBreakpoint.value; 1459 1459 1460 contextMenu.appendCheckboxItem(WI. repeatedUIString.assertionFailures(), () => {1460 contextMenu.appendCheckboxItem(WI.UIString("Assertion Failures"), () => { 1461 1461 if (assertionFailuresBreakpointShown) 1462 1462 WI.debuggerManager.removeBreakpoint(WI.debuggerManager.assertionFailuresBreakpoint); … … 1480 1480 let allRequestsBreakpointShown = WI.settings.showAllRequestsBreakpoint.value; 1481 1481 1482 contextMenu.appendCheckboxItem(WI. repeatedUIString.allRequests(), () => {1482 contextMenu.appendCheckboxItem(WI.UIString("All Requests"), () => { 1483 1483 if (allRequestsBreakpointShown) 1484 1484 WI.domDebuggerManager.removeURLBreakpoint(WI.domDebuggerManager.allRequestsBreakpoint); -
trunk/Source/WebInspectorUI/UserInterface/Views/LayerTreeDetailsSidebarPanel.js
r244952 r245060 137 137 columns.name.sortable = false; 138 138 139 columns.paintCount.title = WI.UIString("Paints" , "Paints @ Column title", "A count of how many times an element was painted (rendered)");139 columns.paintCount.title = WI.UIString("Paints"); 140 140 columns.paintCount.sortable = true; 141 141 columns.paintCount.aligned = "right"; -
trunk/Source/WebInspectorUI/UserInterface/Views/NetworkTableContentView.js
r244952 r245060 212 212 return "XHR"; 213 213 case WI.Resource.Type.Fetch: 214 return WI. repeatedUIString.fetch();214 return WI.UIString("Fetch"); 215 215 case WI.Resource.Type.Ping: 216 216 return WI.UIString("Ping"); … … 1173 1173 }); 1174 1174 1175 this._transferSizeColumn = new WI.TableColumn("transferSize", WI.UIString("Transfer Size" , "Amount of data sent over the network for a single resource"), {1175 this._transferSizeColumn = new WI.TableColumn("transferSize", WI.UIString("Transfer Size"), { 1176 1176 minWidth: 100, 1177 1177 maxWidth: 150, -
trunk/Source/WebInspectorUI/UserInterface/Views/SourcesNavigationSidebarPanel.js
r244952 r245060 884 884 if (breakpoint === WI.debuggerManager.allExceptionsBreakpoint) { 885 885 options.className = "breakpoint-exception-icon"; 886 options.title = WI. repeatedUIString.allExceptions();886 options.title = WI.UIString("All Exceptions"); 887 887 } else if (breakpoint === WI.debuggerManager.uncaughtExceptionsBreakpoint) { 888 888 options.className = "breakpoint-exception-icon"; 889 options.title = WI. repeatedUIString.uncaughtExceptions();889 options.title = WI.UIString("Uncaught Exceptions"); 890 890 } else if (breakpoint === WI.debuggerManager.assertionFailuresBreakpoint) { 891 891 options.className = "breakpoint-assertion-icon"; 892 options.title = WI. repeatedUIString.assertionFailures();892 options.title = WI.UIString("Assertion Failures"); 893 893 } else if (breakpoint instanceof WI.DOMBreakpoint) { 894 894 if (!breakpoint.domNodeIdentifier) … … 924 924 if (breakpoint === WI.domDebuggerManager.allRequestsBreakpoint) { 925 925 options.className = "breakpoint-assertion-icon"; 926 options.title = WI. repeatedUIString.allRequests();926 options.title = WI.UIString("All Requests"); 927 927 } 928 928 } else { … … 1503 1503 let assertionFailuresBreakpointShown = WI.settings.showAssertionFailuresBreakpoint.value; 1504 1504 1505 contextMenu.appendCheckboxItem(WI. repeatedUIString.assertionFailures(), () => {1505 contextMenu.appendCheckboxItem(WI.UIString("Assertion Failures"), () => { 1506 1506 if (assertionFailuresBreakpointShown) 1507 1507 WI.debuggerManager.removeBreakpoint(WI.debuggerManager.assertionFailuresBreakpoint); … … 1525 1525 let allRequestsBreakpointShown = WI.settings.showAllRequestsBreakpoint.value; 1526 1526 1527 contextMenu.appendCheckboxItem(WI. repeatedUIString.allRequests(), () => {1527 contextMenu.appendCheckboxItem(WI.UIString("All Requests"), () => { 1528 1528 if (allRequestsBreakpointShown) 1529 1529 WI.domDebuggerManager.removeURLBreakpoint(WI.domDebuggerManager.allRequestsBreakpoint); -
trunk/Source/WebInspectorUI/UserInterface/Views/SpreadsheetCSSStyleDeclarationSection.js
r244952 r245060 316 316 317 317 case WI.CSSStyleDeclaration.Type.Inline: 318 this._selectorElement.textContent = WI.UIString("Style Attribute" , "CSS properties defined via HTML style attribute");318 this._selectorElement.textContent = WI.UIString("Style Attribute"); 319 319 this._selectorElement.classList.add("style-attribute"); 320 320 break; -
trunk/Source/WebInspectorUI/UserInterface/Views/SpreadsheetRulesStyleDetailsPanel.js
r244952 r245060 257 257 let addSection = (section) => { 258 258 if (section.style.inherited && (!previousStyle || previousStyle.node !== section.style.node)) 259 addHeader(WI.UIString("Inherited From" , "A section of CSS rules matching an ancestor DOM node"), section.style.node);259 addHeader(WI.UIString("Inherited From"), section.style.node); 260 260 261 261 if (!section.isDescendantOf(this)) { -
trunk/Tools/ChangeLog
r245057 r245060 1 2019-05-08 Ryan Haddad <ryanhaddad@apple.com> 2 3 Unreviewed, rolling out r244952. 4 5 Caused inspector to appear blank. 6 7 Reverted changeset: 8 9 "Web Inspector: Provide UIString descriptions to improve 10 localizations" 11 https://bugs.webkit.org/show_bug.cgi?id=195132 12 https://trac.webkit.org/changeset/244952 13 1 14 2019-05-08 Wenson Hsieh <wenson_hsieh@apple.com> 2 15 -
trunk/Tools/Scripts/extract-localizable-js-strings
r244952 r245060 75 75 76 76 # Handle WebInspector strings. Prints a warning if a non-string literal is passed to WI.UIString(). 77 # Allow: WI.UIString(string, comment) 78 # WI.UIString(string, key, comment) 79 HandleUIString( 80 $1, 81 ($3 || (defined $3 and length $3 == 0)) ? $2 : $1, 82 ($3 || (defined $3 and length $3 == 0)) ? $3 : $2 || "", 83 $file, 84 $. 85 ) while s/WI\.UIString\("([^"]+)"(?:,\s*"([^"]*)"(?:,\s*"([^"]*)")?)?\)//; 77 HandleUIString($1, $2 || $1, $3 || "", $file, $.) while s/WI\.UIString\("([^"]+)"(?:,\s*"([^"]+)"(?:,\s*"([^"]+)")?)?\)//; 86 78 print "$file:$.:WARNING: $&\n" while s/WI\.UIString\(.*?\)//; 87 79
Note: See TracChangeset
for help on using the changeset viewer.