CEIP.getSelectedLocale Member

Gets the currently selected locale for a given package.

Syntax

object.getSelectedLocale(packageName);

Arguments

ArgumentSummary
packageName A package to get the selected locale of, e.g. "global", "chatzilla".

Returns

An IETF language tag (e.g. "en-US") for the locale.

Remarks

See Also

Source Code

function ceip_getselectedlocale(packageName)
{
var selectedLocale = "";
try
{
var chromeReg = getService("@mozilla.org/chrome/chrome-registry;1",
"nsIXULChromeRegistry");
selectedLocale = chromeReg.getSelectedLocale(packageName);
}
catch (ex) {}
return selectedLocale;
}