Bug 294816 - Give plugins a way to say which stringbundle to get localisations for the prefs from, and set the plugin enabled pref to hidden.

ChatZilla only.
r=silver
a=shaver
p=gijskruitbosch@gmail.com (Gijs "Hannibal" Kruitbosch)
This commit is contained in:
silver%warwickcompsoc.co.uk 2005-06-02 11:32:04 +00:00
parent 874b6b6022
commit 3e0b818947
2 changed files with 3 additions and 2 deletions

View File

@ -204,10 +204,11 @@ function pm_ispref(prefName)
PrefManager.prototype.addPrefs =
function pm_addprefs(prefSpecs)
{
var bundle = "stringBundle" in prefSpecs ? prefSpecs.stringBundle : null;
for (var i = 0; i < prefSpecs.length; ++i)
{
this.addPref(prefSpecs[i][0], prefSpecs[i][1],
3 in prefSpecs[i] ? prefSpecs[i][3] : null, null,
3 in prefSpecs[i] ? prefSpecs[i][3] : null, bundle,
2 in prefSpecs[i] ? prefSpecs[i][2] : null);
}
}

View File

@ -2251,7 +2251,7 @@ function cmdLoad(e)
}
plugin.API = 1;
plugin.prefary = [["enabled", true, ""]];
plugin.prefary = [["enabled", true, "hidden"]];
rv = rvStr = plugin.init(e.scope);
var branch = "extensions.irc.plugins." + plugin.id + ".";