Bug 1186498 - Let the "cached" of transferredSize can be localized. r=jsantell
authorYFdyh000 <yfdyh000@gmail.com>
Mon, 03 Aug 2015 04:56:00 -0400
changeset 287579 2ee3ba67281f2ad55c7a5e4c6228b546d6a637e3
parent 287578 203279f9588fa05ef81c2a8c0e9b09210cbd252b
child 287580 398a7477659e6723249f720db1d8fb9bf711f4a8
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjsantell
bugs1186498
milestone42.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1186498 - Let the "cached" of transferredSize can be localized. r=jsantell
browser/devtools/netmonitor/netmonitor-view.js
browser/locales/en-US/chrome/browser/devtools/netmonitor.properties
--- a/browser/devtools/netmonitor/netmonitor-view.js
+++ b/browser/devtools/netmonitor/netmonitor-view.js
@@ -1662,17 +1662,17 @@ RequestsMenuView.prototype = Heritage.ex
       case "transferredSize": {
         let node = $(".requests-menu-transferred", target);
 
         let text;
         if (aValue === null) {
           text = L10N.getStr("networkMenu.sizeUnavailable");
         }
         else if(aValue === "cached") {
-          text = aValue;
+          text = L10N.getStr("networkMenu.sizeCached");
           node.classList.add('theme-comment');
         }
         else {
           let kb = aValue / 1024;
           let size = L10N.numberWithDecimals(kb, CONTENT_SIZE_DECIMALS);
           text = L10N.getFormatStr("networkMenu.sizeKB", size);
         }
 
--- a/browser/locales/en-US/chrome/browser/devtools/netmonitor.properties
+++ b/browser/locales/en-US/chrome/browser/devtools/netmonitor.properties
@@ -174,16 +174,21 @@ networkMenu.summary=One request, #2 KB, 
 # in the network menu specifying the size of a request (in kilobytes).
 networkMenu.sizeKB=%S KB
 
 # LOCALIZATION NOTE (networkMenu.sizeUnavailable): This is the label displayed
 # in the network menu specifying the transferred size of a request is
 # unavailable.
 networkMenu.sizeUnavailable=—
 
+# LOCALIZATION NOTE (networkMenu.sizeCached): This is the label displayed
+# in the network menu specifying the transferred of a request is
+# cached.
+networkMenu.sizeCached=cached
+
 # LOCALIZATION NOTE (networkMenu.totalMS): This is the label displayed
 # in the network menu specifying the time for a request to finish (in milliseconds).
 networkMenu.totalMS=→ %S ms
 
 # LOCALIZATION NOTE (networkMenu.millisecond): This is the label displayed
 # in the network menu specifying timing interval divisions (in milliseconds).
 networkMenu.millisecond=%S ms