I am very thankful that Firebug has a nice API to be able to extend,
but I am having problems determining how to work around $STR and
$STRF.
I am making my own module that extends Firebug.ActivableModule. This
uses $STR and $STRF like shown here:
openPermissions: function(event, context)
{
cancelEvent(event);
var browserURI = FirebugChrome.getBrowserURI(context);
var host = this.getHostForURI(browserURI);
var params = {
permissionType: this.getPrefDomain(),
windowTitle: $STR(this.panelName + ".Permissions"),
introText: $STR(this.panelName + ".PermissionsIntro"),
blockVisible: true,
sessionVisible: false,
allowVisible: true,
prefilledHost: host,
};
openWindow("Browser:Permissions", "chrome://browser/content/
preferences/permissions.xul",
"", params);
},
There seems to be no way to extend the string bundle for firebug to
add my own strings. The only thing I can think to do is to extend $STR
by wrapping the function with my own.
Is there a better way to do this? Otherwise I get things like
"myPanel.PermissionsIntro" shown in the UI.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---