diff --git a/browser/devtools/webconsole/gcli.jsm b/browser/devtools/webconsole/gcli.jsm index 5d753c60c174..014cd4a1da88 100644 --- a/browser/devtools/webconsole/gcli.jsm +++ b/browser/devtools/webconsole/gcli.jsm @@ -1495,6 +1495,13 @@ exports.lookup = function(key) { } }; +/** @see propertyLookup in lib/gcli/l10n.js */ +exports.propertyLookup = Proxy.create({ + get: function(rcvr, name) { + return exports.lookup(name); + } +}); + /** @see lookupFormat in lib/gcli/l10n.js */ exports.lookupFormat = function(key, swaps) { try { @@ -5127,7 +5134,7 @@ help.startup = function() { if (match) { var clone = helpManTemplate.cloneNode(true); domtemplate.template(clone, getManTemplateData(match, context), - { stack: 'help_man.html' }); + { allowEval: true, stack: 'help_man.html' }); return clone; } @@ -5200,6 +5207,9 @@ function executeCommand(element, context) { */ function getListTemplateData(args, context) { return { + l10n: l10n.propertyLookup, + lang: context.document.defaultView.navigator.language, + onclick: function(ev) { updateCommand(ev.currentTarget, context); }, @@ -5237,6 +5247,9 @@ function getListTemplateData(args, context) { */ function getManTemplateData(command, context) { return { + l10n: l10n.propertyLookup, + lang: context.document.defaultView.navigator.language, + command: command, onclick: function(ev) { @@ -5275,15 +5288,12 @@ define('gcli/ui/domtemplate', ['require', 'exports', 'module' ], function(requir }); define("text!gcli/commands/help.css", [], void 0); define("text!gcli/commands/help_intro.html", [], "\n" + - "

Welcome to GCLI

\n" + - "\n" + - "

GCLI is an experiment to create a highly usable JavaScript command line for developers.

\n" + + "

${l10n.introHeader}

\n" + "\n" + "

\n" + - " Useful links:\n" + - " source (BSD),\n" + - " documentation (for users/embedders),\n" + - " Mozilla feature page (for GCLI in the web console).\n" + + " \n" + + " ${l10n.introBody}\n" + + " \n" + "

\n" + ""); @@ -5307,7 +5317,7 @@ define("text!gcli/commands/help_man.html", [], "\n" + "

${command.name}

\n" + "\n" + "

\n" + - " Synopsis:\n" + + " ${l10n.helpManSynopsis}:\n" + " \n" + " ${command.name}\n" + " \n" + @@ -5316,16 +5326,16 @@ define("text!gcli/commands/help_man.html", [], "\n" + " \n" + "

\n" + "\n" + - "

Description:

\n" + + "

${l10n.helpManDescription}:

\n" + "\n" + "

\n" + " ${command.manual || command.description}\n" + "

\n" + "\n" + - "

Parameters:

\n" + + "

${l10n.helpManParameters}:

\n" + "\n" + "