Re: Overriding .properties text
Daniel Wang《失落的四葉草》 <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xpinstall |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
>>> For example, after overriding the value, all references in the form of:
>>>
>>> var strbundle=document.getElementById("stringBundleID");
>>> var overRide=strbundle.getString("Name");
>>>
>>> alert(overRide);
Redeclare variable?
e.g.
function custom_stringBundle(bundle) {
this.bundle;
this.getString = this.bundle.getString;
}
strbundle = new custom_stringBundle(strbundle)
to unload:
temp = strbundle
strbundle= temp.bundle
delete temp
/--- untested code, but something like that ----/