From 52a35c649438894a757739e9f9efe08b362dde6a Mon Sep 17 00:00:00 2001 From: Edmund Wong Date: Fri, 17 Jan 2014 16:10:55 +0800 Subject: [PATCH 1/2] gclicommands.properties is mentioned in toolkit, so it's moved to global/ --- docs/writing-commands.md | 2 +- mozilla/gcli/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/writing-commands.md b/docs/writing-commands.md index 4060e82a..c011dde9 100644 --- a/docs/writing-commands.md +++ b/docs/writing-commands.md @@ -87,7 +87,7 @@ depends on what context you are writing your command for. GCLI supports Mozilla style localization. To add a command that will only ever be used embedded in Firefox, this is the way to go. Your strings should be -stored in ``browser/locales/en-US/chrome/browser/devtools/gclicommands.properties``, +stored in ``toolkit/locales/en-US/chrome/devtools/gclicommands.properties``, And you should access them using ``gcli.lookup(...)`` or ``gcli.lookupFormat()`` For examples of existing commands, take a look in diff --git a/mozilla/gcli/index.js b/mozilla/gcli/index.js index d65d6b5f..9f32352d 100644 --- a/mozilla/gcli/index.js +++ b/mozilla/gcli/index.js @@ -91,7 +91,7 @@ exports.hiddenByChromePref = function() { try { var Services = Components.utils.import('resource://gre/modules/Services.jsm', {}).Services; var stringBundle = Services.strings.createBundle( - 'chrome://browser/locale/devtools/gclicommands.properties'); + 'chrome://global/locale/devtools/gclicommands.properties'); /** * Lookup a string in the GCLI string bundle From 0daf04cca708f439b5a767140e62be0073dd69d7 Mon Sep 17 00:00:00 2001 From: Edmund Wong Date: Sat, 18 Jan 2014 10:14:53 +0800 Subject: [PATCH 2/2] Missed gcli.properties. --- mozilla/util/l10n.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/util/l10n.js b/mozilla/util/l10n.js index 4ef1e483..7016d0fb 100644 --- a/mozilla/util/l10n.js +++ b/mozilla/util/l10n.js @@ -23,7 +23,7 @@ var Services = Components.utils.import('resource://gre/modules/Services.jsm', {} var imports = {}; XPCOMUtils.defineLazyGetter(imports, 'stringBundle', function () { - return Services.strings.createBundle('chrome://browser/locale/devtools/gcli.properties'); + return Services.strings.createBundle('chrome://global/locale/devtools/gcli.properties'); }); /*