browser/devtools/profiler/cleopatra/js/strings.js

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 "use strict";
michael@0 2
michael@0 3 const Cu = Components.utils;
michael@0 4 const require = Cu.import("resource://gre/modules/devtools/Loader.jsm", {}).devtools.require;
michael@0 5 const { L10N_BUNDLE } = require("devtools/profiler/consts");
michael@0 6
michael@0 7 Cu.import("resource:///modules/devtools/ViewHelpers.jsm");
michael@0 8 var L10N = new ViewHelpers.L10N(L10N_BUNDLE);
michael@0 9
michael@0 10 /**
michael@0 11 * Shortcuts for the L10N helper functions. Used in Cleopatra.
michael@0 12 */
michael@0 13 var gStrings = {
michael@0 14 // This strings are here so that Cleopatra code could use a simple object
michael@0 15 // lookup. This makes it easier to merge upstream changes.
michael@0 16 "Complete Profile": L10N.getStr("profiler.completeProfile"),
michael@0 17 "Sample Range": L10N.getStr("profiler.sampleRange"),
michael@0 18 "Running Time": L10N.getStr("profiler.runningTime"),
michael@0 19 "Self": L10N.getStr("profiler.self"),
michael@0 20 "Symbol Name": L10N.getStr("profiler.symbolName"),
michael@0 21
michael@0 22 getStr: function (name) {
michael@0 23 return L10N.getStr(name);
michael@0 24 },
michael@0 25
michael@0 26 getFormatStr: function (name, params) {
michael@0 27 return L10N.getFormatStr(name, params);
michael@0 28 }
michael@0 29 };

mercurial