Changeset 239286 in webkit
- Timestamp:
- Dec 17, 2018 1:16:30 PM (5 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r239285 r239286 1 2018-12-17 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: Audit: add plural result strings 4 https://bugs.webkit.org/show_bug.cgi?id=192769 5 <rdar://problem/46628680> 6 7 Reviewed by Brian Burg. 8 9 * UserInterface/Views/AuditTestContentView.js: 10 (WI.AuditTestContentView.prototype.showNoResultDataPlaceholder): 11 12 * UserInterface/Views/AuditTestGroupContentView.js: 13 (WI.AuditTestGroupContentView.prototype.layout): 14 15 * Localizations/en.lproj/localizedStrings.js: 16 1 17 2018-12-17 Devin Rousso <drousso@apple.com> 2 18 -
trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js
r239285 r239286 26 26 localizedStrings["%d Errors"] = "%d Errors"; 27 27 localizedStrings["%d Errors, %d Warnings"] = "%d Errors, %d Warnings"; 28 localizedStrings["%d Fail "] = "%d Fail";28 localizedStrings["%d Failed"] = "%d Failed"; 29 29 localizedStrings["%d Frame"] = "%d Frame"; 30 30 localizedStrings["%d Frames"] = "%d Frames"; 31 31 localizedStrings["%d More\u2026"] = "%d More\u2026"; 32 localizedStrings["%d Pass "] = "%d Pass";32 localizedStrings["%d Passed"] = "%d Passed"; 33 33 localizedStrings["%d Threads"] = "%d Threads"; 34 34 localizedStrings["%d Unsupported"] = "%d Unsupported"; 35 localizedStrings["%d Warn "] = "%d Warn";35 localizedStrings["%d Warning"] = "%d Warning"; 36 36 localizedStrings["%d Warnings"] = "%d Warnings"; 37 37 localizedStrings["%d \xd7 %d pixels"] = "%d \xd7 %d pixels"; … … 922 922 localizedStrings["The \u201C%s\u201D audit is unsupported"] = "The \u201C%s\u201D audit is unsupported"; 923 923 localizedStrings["The \u201C%s\u201D audit passed"] = "The \u201C%s\u201D audit passed"; 924 localizedStrings["The \u201C%s\u201D audit resulted in a warning"] = "The \u201C%s\u201D audit resulted in a warning"; 924 925 localizedStrings["The \u201C%s\u201D audit threw an error"] = "The \u201C%s\u201D audit threw an error"; 925 localizedStrings["The \u201C%s\u201D audit warned"] = "The \u201C%s\u201D audit warned";926 926 localizedStrings["The \u201C%s\u201D\ntable is empty."] = "The \u201C%s\u201D\ntable is empty."; 927 927 localizedStrings["The page's content has changed"] = "The page's content has changed"; -
trunk/Source/WebInspectorUI/UserInterface/Views/AuditTestContentView.js
r238743 r239286 181 181 message = WI.UIString("The \u201C%s\u201D audit failed"); 182 182 else if (result.didWarn) 183 message = WI.UIString("The \u201C%s\u201D audit warned");183 message = WI.UIString("The \u201C%s\u201D audit resulted in a warning"); 184 184 else if (result.didPass) 185 185 message = WI.UIString("The \u201C%s\u201D audit passed"); -
trunk/Source/WebInspectorUI/UserInterface/Views/AuditTestGroupContentView.js
r238743 r239286 98 98 let scopeBarItems = []; 99 99 100 let addScopeBarItem = (level, label ) => {100 let addScopeBarItem = (level, labelSingular, labelPlural) => { 101 101 let count = levelCounts[level]; 102 102 if (isNaN(count) || count <= 0) 103 103 return; 104 104 105 let label = (labelPlural && count !== 1) ? labelPlural : labelSingular; 105 106 let scopeBarItem = new WI.ScopeBarItem(level, label.format(count), { 106 107 className: level, … … 112 113 }; 113 114 114 addScopeBarItem(WI.AuditTestCaseResult.Level.Pass, WI.UIString("%d Pass "));115 addScopeBarItem(WI.AuditTestCaseResult.Level.Warn, WI.UIString("%d Warn "));116 addScopeBarItem(WI.AuditTestCaseResult.Level.Fail, WI.UIString("%d Fail "));117 addScopeBarItem(WI.AuditTestCaseResult.Level.Error, WI.UIString("%d Error") );115 addScopeBarItem(WI.AuditTestCaseResult.Level.Pass, WI.UIString("%d Passed")); 116 addScopeBarItem(WI.AuditTestCaseResult.Level.Warn, WI.UIString("%d Warning"), WI.UIString("%d Warnings")); 117 addScopeBarItem(WI.AuditTestCaseResult.Level.Fail, WI.UIString("%d Failed")); 118 addScopeBarItem(WI.AuditTestCaseResult.Level.Error, WI.UIString("%d Error"), WI.UIString("%d Errors")); 118 119 addScopeBarItem(WI.AuditTestCaseResult.Level.Unsupported, WI.UIString("%d Unsupported")); 119 120
Note: See TracChangeset
for help on using the changeset viewer.