Changeset 196184 in webkit
- Timestamp:
- Feb 5, 2016 1:20:52 PM (8 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r196169 r196184 1 2016-02-05 Devin Rousso <dcrousso+webkit@gmail.com> 2 3 Web Inspector: Replace all instances of '%s' with “%s“ 4 https://bugs.webkit.org/show_bug.cgi?id=153891 5 <rdar://problem/24510236> 6 7 Reviewed by Timothy Hatcher. 8 9 Switched all WebInspector.UIString() from using '' to ““. 10 11 * Localizations/en.lproj/localizedStrings.js: 12 * UserInterface/Views/CSSStyleDeclarationSection.js: 13 (WebInspector.CSSStyleDeclarationSection.prototype._handleSelectorPaste): 14 * UserInterface/Views/CSSStyleDeclarationTextEditor.js: 15 (WebInspector.CSSStyleDeclarationTextEditor.prototype._createTextMarkerForPropertyIfNeeded): 16 * UserInterface/Views/VisualStylePropertyEditor.js: 17 (WebInspector.VisualStylePropertyEditor.prototype.update): 18 * UserInterface/Views/VisualStyleSelectorTreeItem.js: 19 (WebInspector.VisualStyleSelectorTreeItem.prototype._updateSelectorIcon): 20 1 21 2016-02-05 Nikita Vasilyev <nvasilyev@apple.com> 2 22 -
trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js
r196146 r196184 209 209 localizedStrings["Detach into separate window"] = "Detach into separate window"; 210 210 localizedStrings["Details"] = "Details"; 211 localizedStrings["Did you mean '%s'?\nClick to replace."] = "Did you mean '%s'?\nClick to replace.";211 localizedStrings["Did you mean “%s”?\nClick to replace."] = "Did you mean “%s”?\nClick to replace."; 212 212 localizedStrings["Dimensions"] = "Dimensions"; 213 213 localizedStrings["Direction"] = "Direction"; … … 229 229 localizedStrings["Download Web Archive"] = "Download Web Archive"; 230 230 localizedStrings["Duplicate Selector"] = "Duplicate Selector"; 231 localizedStrings["Duplicate property '%s'.\nClick to delete this property."] = "Duplicate property '%s'.\nClick to delete this property.";231 localizedStrings["Duplicate property “%s”.\nClick to delete this property."] = "Duplicate property “%s”.\nClick to delete this property."; 232 232 localizedStrings["Duration"] = "Duration"; 233 233 localizedStrings["Dynamically calculated for the parent element"] = "Dynamically calculated for the parent element"; … … 649 649 localizedStrings["Text Node"] = "Text Node"; 650 650 localizedStrings["Text Only"] = "Text Only"; 651 localizedStrings["The 'webkit' prefix is needed for this property.\nClick to insert a duplicate with the prefix."] = "The 'webkit' prefix is needed for this property.\nClick to insert a duplicate with the prefix."; 652 localizedStrings["The 'webkit' prefix is not necessary.\nClick to insert a duplicate without the prefix."] = "The 'webkit' prefix is not necessary.\nClick to insert a duplicate without the prefix."; 653 localizedStrings["The property '%s' is not supported."] = "The property '%s' is not supported."; 654 localizedStrings["The selector '%s' is invalid.\nClick to revert to the previous selector."] = "The selector '%s' is invalid.\nClick to revert to the previous selector."; 655 localizedStrings["The value '%s' is not supported for this property."] = "The value '%s' is not supported for this property."; 656 localizedStrings["The value '%s' is not supported for this property.\nClick to delete and open autocomplete."] = "The value '%s' is not supported for this property.\nClick to delete and open autocomplete."; 657 localizedStrings["The value '%s' needs units.\nClick to add 'px' to the value."] = "The value '%s' needs units.\nClick to add 'px' to the value."; 651 localizedStrings["The property “%s” is not supported."] = "The property “%s” is not supported."; 652 localizedStrings["The selector “%s” is invalid.\nClick to revert to the previous selector."] = "The selector “%s” is invalid.\nClick to revert to the previous selector."; 653 localizedStrings["The value “%s” is not supported for this property."] = "The value “%s” is not supported for this property."; 654 localizedStrings["The value “%s” is not supported for this property.\nClick to delete and open autocomplete."] = "The value “%s” is not supported for this property.\nClick to delete and open autocomplete."; 655 localizedStrings["The value “%s” needs units.\nClick to add “px” to the value."] = "The value “%s” needs units.\nClick to add “px” to the value."; 658 656 localizedStrings["The “%s”\ntable is empty."] = "The “%s”\ntable is empty."; 657 localizedStrings["The “webkit” prefix is needed for this property.\nClick to insert a duplicate with the prefix."] = "The “webkit” prefix is needed for this property.\nClick to insert a duplicate with the prefix."; 658 localizedStrings["The “webkit” prefix is not necessary.\nClick to insert a duplicate without the prefix."] = "The “webkit” prefix is not necessary.\nClick to insert a duplicate without the prefix."; 659 659 localizedStrings["This Element"] = "This Element"; 660 660 localizedStrings["This property needs a value.\nClick to open autocomplete."] = "This property needs a value.\nClick to open autocomplete."; … … 696 696 localizedStrings["User Stylesheet"] = "User Stylesheet"; 697 697 localizedStrings["Using Keyword Value"] = "Using Keyword Value"; 698 localizedStrings["Using the previous selector '%s'."] = "Using the previous selector '%s'.";698 localizedStrings["Using the previous selector “%s”."] = "Using the previous selector “%s”."; 699 699 localizedStrings["Value"] = "Value"; 700 700 localizedStrings["Variants"] = "Variants"; -
trunk/Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationSection.js
r194717 r196184 649 649 } 650 650 651 this._iconElement.title = WebInspector.UIString("The selector '%s'is invalid.\nClick to revert to the previous selector.").format(this._selectorElement.textContent.trim());652 this._selectorElement.title = WebInspector.UIString("Using the previous selector '%s'.").format(this._style.ownerRule.selectorText);651 this._iconElement.title = WebInspector.UIString("The selector “%s” is invalid.\nClick to revert to the previous selector.").format(this._selectorElement.textContent.trim()); 652 this._selectorElement.title = WebInspector.UIString("Using the previous selector “%s”.").format(this._style.ownerRule.selectorText); 653 653 for (let i = 0; i < this._selectorElement.children.length; ++i) 654 654 this._selectorElement.children[i].title = null; -
trunk/Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationTextEditor.js
r194977 r196184 1074 1074 generateInvalidMarker.call(this, { 1075 1075 position: from, 1076 title: WebInspector.UIString("The 'webkit'prefix is not necessary.\nClick to insert a duplicate without the prefix."),1076 title: WebInspector.UIString("The “webkit” prefix is not necessary.\nClick to insert a duplicate without the prefix."), 1077 1077 correction: property.text + "\n" + property.text.replace("-webkit-", ""), 1078 1078 autocomplete: false … … 1081 1081 invalidMarkerInfo = { 1082 1082 position: from, 1083 title: WebInspector.UIString("Duplicate property '%s'.\nClick to delete this property.").format(property.name),1083 title: WebInspector.UIString("Duplicate property “%s”.\nClick to delete this property.").format(property.name), 1084 1084 correction: "", 1085 1085 autocomplete: false … … 1105 1105 invalidMarkerInfo = { 1106 1106 position: start, 1107 title: WebInspector.UIString("The value '%s' needs units.\nClick to add 'px'to the value.").format(property.value),1107 title: WebInspector.UIString("The value “%s” needs units.\nClick to add “px” to the value.").format(property.value), 1108 1108 correction: property.name + ": " + property.value + "px;", 1109 1109 autocomplete: false 1110 1110 }; 1111 1111 } else { 1112 var valueReplacement = property.value.length ? WebInspector.UIString("The value '%s'is not supported for this property.\nClick to delete and open autocomplete.").format(property.value) : WebInspector.UIString("This property needs a value.\nClick to open autocomplete.");1112 var valueReplacement = property.value.length ? WebInspector.UIString("The value “%s” is not supported for this property.\nClick to delete and open autocomplete.").format(property.value) : WebInspector.UIString("This property needs a value.\nClick to open autocomplete."); 1113 1113 1114 1114 invalidMarkerInfo = { … … 1123 1123 invalidMarkerInfo = { 1124 1124 position: from, 1125 title: WebInspector.UIString("The 'webkit'prefix is needed for this property.\nClick to insert a duplicate with the prefix."),1125 title: WebInspector.UIString("The “webkit” prefix is needed for this property.\nClick to insert a duplicate with the prefix."), 1126 1126 correction: "-webkit-" + property.text + "\n" + property.text, 1127 1127 autocomplete: false … … 1135 1135 invalidMarkerInfo = { 1136 1136 position: from, 1137 title: WebInspector.UIString("Did you mean '%s'?\nClick to replace.").format(closestPropertyName),1137 title: WebInspector.UIString("Did you mean “%s”?\nClick to replace.").format(closestPropertyName), 1138 1138 correction: property.text.replace(property.name, closestPropertyName), 1139 1139 autocomplete: true … … 1143 1143 invalidMarkerInfo = { 1144 1144 position: from, 1145 title: WebInspector.UIString("Did you mean '%s'?\nClick to replace.").format("-webkit-" + closestPropertyName),1145 title: WebInspector.UIString("Did you mean “%s”?\nClick to replace.").format("-webkit-" + closestPropertyName), 1146 1146 correction: property.text.replace(property.canonicalName, closestPropertyName), 1147 1147 autocomplete: true … … 1151 1151 invalidMarkerInfo = { 1152 1152 position: from, 1153 title: WebInspector.UIString("The property '%s'is not supported.").format(property.name),1153 title: WebInspector.UIString("The property “%s” is not supported.").format(property.name), 1154 1154 correction: false, 1155 1155 autocomplete: false -
trunk/Source/WebInspectorUI/UserInterface/Views/VisualStylePropertyEditor.js
r196146 r196184 292 292 if (!propertyMissing && !property.valid) { 293 293 this._warningElement.classList.add("invalid-value"); 294 this._warningElement.title = WebInspector.UIString("The value '%s'is not supported for this property.").format(propertyText);294 this._warningElement.title = WebInspector.UIString("The value “%s” is not supported for this property.").format(propertyText); 295 295 this.specialPropertyPlaceholderElementText = propertyText; 296 296 return; -
trunk/Source/WebInspectorUI/UserInterface/Views/VisualStyleSelectorTreeItem.js
r194737 r196184 262 262 this._listItemNode.classList.toggle("selector-invalid", !!this._hasInvalidSelector); 263 263 if (this._hasInvalidSelector) { 264 this._iconElement.title = WebInspector.UIString("The selector '%s'is invalid.\nClick to revert to the previous selector.").format(this.selectorText);265 this.mainTitleElement.title = WebInspector.UIString("Using the previous selector '%s'.").format(this.representedObject.ownerRule.selectorText);264 this._iconElement.title = WebInspector.UIString("The selector “%s” is invalid.\nClick to revert to the previous selector.").format(this.selectorText); 265 this.mainTitleElement.title = WebInspector.UIString("Using the previous selector “%s”.").format(this.representedObject.ownerRule.selectorText); 266 266 return; 267 267 }
Note: See TracChangeset
for help on using the changeset viewer.