pjs/xpinstall/packager/mac/langenus.jst

51 строка
1.7 KiB
Plaintext

var srDest = $SpaceRequired$;
var err;
var fProgram;
// --- LOCALIZATION NOTE: translate only these ---
var prettyName = "English-US Language Pack";
var regName = "locales/mozilla/en-US";
var chromeName = "en-US.jar";
// --- END LOCALIZABLE RESOURCES ---
err = initInstall(prettyName, regName, "$Version$");
logComment("initInstall: " + err);
fProgram = getFolder("Program");
logComment("fProgram: " + fProgram);
if (verifyDiskSpace(fProgram, srDest))
{
err = addDirectory("",
"$Version$",
"viewer",
fProgram,
"",
true);
logComment("addDirectory() returned: " + err);
var cf = getFolder("Chrome");
registerChrome(LOCALE | DELAYED_CHROME, getFolder(cf, chromeName), "locale/en-US/global/");
registerChrome(LOCALE | DELAYED_CHROME, getFolder(cf, chromeName), "locale/en-US/communicator/");
registerChrome(LOCALE | DELAYED_CHROME, getFolder(cf, chromeName), "locale/en-US/messenger/");
registerChrome(LOCALE | DELAYED_CHROME, getFolder(cf, chromeName), "locale/en-US/editor/");
registerChrome(LOCALE | DELAYED_CHROME, getFolder(cf, chromeName), "locale/en-US/navigator/");
registerChrome(LOCALE | DELAYED_CHROME, getFolder(cf, chromeName), "locale/en-US/necko/");
registerChrome(LOCALE | DELAYED_CHROME, getFolder(cf, chromeName), "locale/en-US/cookie/");
registerChrome(LOCALE | DELAYED_CHROME, getFolder(cf, chromeName), "locale/en-US/wallet/");
if(err == SUCCESS)
{
err = performInstall();
logComment("performInstall() returned: " + err);
}
else
{
cancelInstall(err);
logComment("cancelInstall due to error: " + err);
}
}
else
cancelInstall(INSUFFICIENT_DISK_SPACE);