Skip to content
This repository was archived by the owner on Jun 28, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/writing-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion mozilla/gcli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion mozilla/util/l10n.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});

/*
Expand Down