mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 02:35:41 +00:00
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:
parent
874b6b6022
commit
3e0b818947
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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 + ".";
|
||||
|
Loading…
Reference in New Issue
Block a user