MessageManager Prototype

Syntax

var object = new MessageManager(entities);

Arguments

ArgumentSummary
entities

Remarks

Members

MemberSummary
addBundle
checkCharset
convertHankakuToZenkaku
fromUnicode
getMsg
getMsgFrom
importBundle
loadBrands
toUnicode

See Also

Source Code

function MessageManager(entities)
{
const UC_CTRID = "@mozilla.org/intl/scriptableunicodeconverter";
const nsIUnicodeConverter =
Components.interfaces.nsIScriptableUnicodeConverter;
this.ucConverter =
Components.classes[UC_CTRID].getService(nsIUnicodeConverter);
this.defaultBundle = null;
this.bundleList = new Array();
// Provide a fallback so we don't break getMsg and related constants later.
this.entities = entities || {};
}