Title: [153471] trunk/Source/WebInspectorUI
- Revision
- 153471
- Author
- [email protected]
- Date
- 2013-07-30 06:52:19 -0700 (Tue, 30 Jul 2013)
Log Message
Web Inspector: doesn't use localized user interface at remote inspector
https://bugs.webkit.org/show_bug.cgi?id=119252
Patch by Roland Takács <[email protected]> on 2013-07-30
Reviewed by Timothy Hatcher.
Added a flag in order to not use localizedStrings in remote inspector.
* UserInterface/InspectorFrontendHostStub.js:
* UserInterface/LoadLocalizedStrings.js:
* UserInterface/Main.js:
(WebInspector.UIString):
Modified Paths
Diff
Modified: trunk/Source/WebInspectorUI/ChangeLog (153470 => 153471)
--- trunk/Source/WebInspectorUI/ChangeLog 2013-07-30 13:51:25 UTC (rev 153470)
+++ trunk/Source/WebInspectorUI/ChangeLog 2013-07-30 13:52:19 UTC (rev 153471)
@@ -1,3 +1,17 @@
+2013-07-30 Roland Takács <[email protected]>
+
+ Web Inspector: doesn't use localized user interface at remote inspector
+ https://bugs.webkit.org/show_bug.cgi?id=119252
+
+ Reviewed by Timothy Hatcher.
+
+ Added a flag in order to not use localizedStrings in remote inspector.
+
+ * UserInterface/InspectorFrontendHostStub.js:
+ * UserInterface/LoadLocalizedStrings.js:
+ * UserInterface/Main.js:
+ (WebInspector.UIString):
+
2013-07-24 Antoine Quint <[email protected]>
Web Inspector: control+clicking on a numeric token should not show the context menu
Modified: trunk/Source/WebInspectorUI/UserInterface/InspectorFrontendHostStub.js (153470 => 153471)
--- trunk/Source/WebInspectorUI/UserInterface/InspectorFrontendHostStub.js 2013-07-30 13:51:25 UTC (rev 153470)
+++ trunk/Source/WebInspectorUI/UserInterface/InspectorFrontendHostStub.js 2013-07-30 13:52:19 UTC (rev 153471)
@@ -118,5 +118,6 @@
}
InspectorFrontendHost = new WebInspector.InspectorFrontendHostStub();
+ WebInspector.dontLocalizeUserInterface = true;
}
Modified: trunk/Source/WebInspectorUI/UserInterface/LoadLocalizedStrings.js (153470 => 153471)
--- trunk/Source/WebInspectorUI/UserInterface/LoadLocalizedStrings.js 2013-07-30 13:51:25 UTC (rev 153470)
+++ trunk/Source/WebInspectorUI/UserInterface/LoadLocalizedStrings.js 2013-07-30 13:52:19 UTC (rev 153471)
@@ -24,6 +24,9 @@
*/
(function() {
+ if (WebInspector.dontLocalizeUserInterface)
+ return;
+
var localizedStringsURL = InspectorFrontendHost.localizedStringsURL();
console.assert(localizedStringsURL);
if (localizedStringsURL)
Modified: trunk/Source/WebInspectorUI/UserInterface/Main.js (153470 => 153471)
--- trunk/Source/WebInspectorUI/UserInterface/Main.js 2013-07-30 13:51:25 UTC (rev 153470)
+++ trunk/Source/WebInspectorUI/UserInterface/Main.js 2013-07-30 13:52:19 UTC (rev 153471)
@@ -655,6 +655,9 @@
WebInspector.UIString = function(string, vararg)
{
+ if (WebInspector.dontLocalizeUserInterface)
+ return string;
+
if (window.localizedStrings && string in window.localizedStrings)
return window.localizedStrings[string];
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes