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

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

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