add langenus to separate en-US files from browser.xpi. not part of build

yet.
This commit is contained in:
tao%netscape.com 2000-07-21 08:11:32 +00:00
Родитель f4ae78a9b7
Коммит 8d00dd7663
2 изменённых файлов: 76 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,38 @@
var err;
var fProgram;
// --- LOCALIZATION NOTE: translate only these ---
var prettyName = "English-US Language Pack";
var regName = "locales/mozilla/en-US";
var chromeName = "locales/en-US";
// --- END LOCALIZABLE RESOURCES ---
err = initInstall(prettyName, regName, "$Version$");
logComment("initInstall: " + err);
fProgram = getFolder("Program");
logComment("fProgram: " + fProgram);
err = addDirectory("",
"$Version$",
"viewer",
fProgram,
"",
true);
logComment("addDirectory() returned: " + err);
// register chrome
var cf = getFolder("Chrome");
registerChrome(LOCALE | DELAYED_CHROME, getFolder(cf, chromeName));
// check return value
if(err == SUCCESS)
{
err = performInstall();
logComment("performInstall() returned: " + err);
}
else
{
cancelInstall(err);
logComment("cancelInstall due to error: " + err);
}

Просмотреть файл

@ -0,0 +1,38 @@
var err;
var fProgram;
// --- LOCALIZATION NOTE: translate only these ---
var prettyName = "English-US Language Pack";
var regName = "locales/mozilla/en-US";
var chromeName = "locales/en-US";
// --- END LOCALIZABLE RESOURCES ---
err = initInstall(prettyName, regName, "$Version$");
logComment("initInstall: " + err);
fProgram = getFolder("Program");
logComment("fProgram: " + fProgram);
err = addDirectory("",
"$Version$",
"bin",
fProgram,
"",
true);
logComment("addDirectory() returned: " + err);
// register chrome
var cf = getFolder("Chrome");
registerChrome(LOCALE | DELAYED_CHROME, getFolder(cf, chromeName));
// check return value
if(err == SUCCESS)
{
err = performInstall();
logComment("performInstall() returned: " + err);
}
else
{
cancelInstall(err);
logComment("cancelInstall due to error: " + err);
}