Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1578191
 поиск   регистрация   авторизация 
 
Группа :: Сети/WWW
Пакет: mozilla

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

Патч: mozilla-0.9.9-l10n_uk_de.patch


diff -urN mozilla.orig/xpinstall/packager/packages-unix mozilla/xpinstall/packager/packages-unix
--- mozilla.orig/xpinstall/packager/packages-unix	Thu Mar 21 19:31:16 2002
+++ mozilla/xpinstall/packager/packages-unix	Thu Mar 21 19:33:36 2002
@@ -16,6 +16,22 @@
 bin/chrome/ru-unix.jar
 bin/chrome/ru-win.jar
 
+[langukua]
+;
+; uk_UA
+bin/chrome/uk-UA.jar
+bin/chrome/uk-mac.jar
+bin/chrome/uk-unix.jar
+bin/chrome/uk-win.jar
+
+[langdeat]
+;
+; de-AT
+bin/chrome/de-AT.jar
+bin/chrome/de-mac.jar
+bin/chrome/de-unix.jar
+bin/chrome/de-win.jar
+
 [langenus]
 ;
 ; en-US
@@ -29,6 +45,20 @@
 ; RU
 bin/chrome/RU.jar
 bin/defaults/profile/RU/*
+bin/searchplugins/*
+
+[regua]
+;
+; UA
+bin/chrome/UA.jar
+bin/defaults/profile/UA/*
+bin/searchplugins/*
+
+[regat]
+;
+; AT
+bin/chrome/AT.jar
+bin/defaults/profile/AT/*
 bin/searchplugins/*
 
 [regus]
diff -urN mozilla.orig/xpinstall/packager/unix/langdeat.jst mozilla/xpinstall/packager/unix/langdeat.jst
--- mozilla.orig/xpinstall/packager/unix/langdeat.jst	Thu Jan  1 03:00:00 1970
+++ mozilla/xpinstall/packager/unix/langdeat.jst	Thu Mar 21 19:35:58 2002
@@ -0,0 +1,90 @@
+var srDest = $SpaceRequired$;
+var err;
+var fProgram;
+var platformNode;
+
+platformNode = getPlatform();
+logComment("initInstall: platformNode=" + platformNode);
+// end
+// end - OS type detection
+
+// --- LOCALIZATION NOTE: translate only these ---
+var prettyName = "Deutsch (AT) Language Pack";
+var langcode = "de";
+var chromeNode = langcode + "-AT";
+// --- END LOCALIZABLE RESOURCES ---
+var regName    = "locales/mozilla/" + chromeNode;
+var chromeName = chromeNode + ".jar";
+var platformName = langcode + "-" + platformNode + ".jar";
+var localeName = "locale/" + chromeNode + "/";
+
+err = initInstall(prettyName, regName, "$Version$"); 
+logComment("initInstall: " + err);
+
+fProgram = getFolder("Program");
+logComment("fProgram: " + fProgram);
+
+if (verifyDiskSpace(fProgram, srDest))
+{
+    var chromeType = LOCALE;
+    err = addDirectory("",
+                       "bin",
+                       fProgram,
+                       "");
+    logComment("addDirectory() returned: " + err);
+
+    if (err != SUCCESS)
+    {
+        logComment("addDirectory() to " + fProgram + "failed!");
+        // couldn't install globally, try installing to the profile
+        resetError();
+        chromeType |= PROFILE_CHROME;
+        fProgram = getFolder("Profile");
+        logComment("try installing to the user profile:" + fProgram);
+        err = addDirectory("","bin",fProgram,"");
+    }
+ 
+    setPackageFolder(fProgram);
+ 
+    // check return value
+    if (err == SUCCESS)
+    {
+        // register chrome
+        var cf = getFolder(fProgram, "chrome/"+chromeName);
+        var pf = getFolder(fProgram, "chrome/"+platformName);
+
+        registerChrome(chromeType, cf, localeName + "global/");
+        registerChrome(chromeType, cf, localeName + "communicator/");
+
+        registerChrome(chromeType, cf, localeName + "messenger/");
+        registerChrome(chromeType, cf, localeName + "messenger-smime/");
+
+        registerChrome(chromeType, cf, localeName + "editor/");
+        registerChrome(chromeType, cf, localeName + "navigator/");
+        registerChrome(chromeType, cf, localeName + "aim/");
+        registerChrome(chromeType, cf, localeName + "necko/");
+        registerChrome(chromeType, cf, localeName + "mozldap/");
+        registerChrome(chromeType, cf, localeName + "cookie/");
+        registerChrome(chromeType, cf, localeName + "wallet/");
+        registerChrome(chromeType, cf, localeName + "content-packs/");
+        registerChrome(chromeType, cf, localeName + "help/");
+        registerChrome(chromeType, cf, localeName + "net2phone/");
+        registerChrome(chromeType, cf, localeName + "pipnss/");
+        registerChrome(chromeType, cf, localeName + "pippki/");
+        registerChrome(chromeType, cf, localeName + "forms/");
+
+        registerChrome(chromeType, pf, localeName + "global-platform/");
+        registerChrome(chromeType, pf, localeName + "communicator-platform/");
+        registerChrome(chromeType, pf, localeName + "navigator-platform/");
+
+        err = performInstall(); 
+        logComment("performInstall() returned: " + err);
+    }
+    else
+    {
+        cancelInstall(err);
+        logComment("cancelInstall due to error: " + err);
+    }
+}
+else
+    cancelInstall(INSUFFICIENT_DISK_SPACE);
diff -urN mozilla.orig/xpinstall/packager/unix/langukua.jst mozilla/xpinstall/packager/unix/langukua.jst
--- mozilla.orig/xpinstall/packager/unix/langukua.jst	Thu Jan  1 03:00:00 1970
+++ mozilla/xpinstall/packager/unix/langukua.jst	Thu Mar 21 19:35:09 2002
@@ -0,0 +1,90 @@
+var srDest = $SpaceRequired$;
+var err;
+var fProgram;
+var platformNode;
+
+platformNode = getPlatform();
+logComment("initInstall: platformNode=" + platformNode);
+// end
+// end - OS type detection
+
+// --- LOCALIZATION NOTE: translate only these ---
+var prettyName = "Ukrainian (UA) Language Pack";
+var langcode = "uk";
+var chromeNode = langcode + "-UK";
+// --- END LOCALIZABLE RESOURCES ---
+var regName    = "locales/mozilla/" + chromeNode;
+var chromeName = chromeNode + ".jar";
+var platformName = langcode + "-" + platformNode + ".jar";
+var localeName = "locale/" + chromeNode + "/";
+
+err = initInstall(prettyName, regName, "$Version$"); 
+logComment("initInstall: " + err);
+
+fProgram = getFolder("Program");
+logComment("fProgram: " + fProgram);
+
+if (verifyDiskSpace(fProgram, srDest))
+{
+    var chromeType = LOCALE;
+    err = addDirectory("",
+                       "bin",
+                       fProgram,
+                       "");
+    logComment("addDirectory() returned: " + err);
+
+    if (err != SUCCESS)
+    {
+        logComment("addDirectory() to " + fProgram + "failed!");
+        // couldn't install globally, try installing to the profile
+        resetError();
+        chromeType |= PROFILE_CHROME;
+        fProgram = getFolder("Profile");
+        logComment("try installing to the user profile:" + fProgram);
+        err = addDirectory("","bin",fProgram,"");
+    }
+ 
+    setPackageFolder(fProgram);
+ 
+    // check return value
+    if (err == SUCCESS)
+    {
+        // register chrome
+        var cf = getFolder(fProgram, "chrome/"+chromeName);
+        var pf = getFolder(fProgram, "chrome/"+platformName);
+
+        registerChrome(chromeType, cf, localeName + "global/");
+        registerChrome(chromeType, cf, localeName + "communicator/");
+
+        registerChrome(chromeType, cf, localeName + "messenger/");
+        registerChrome(chromeType, cf, localeName + "messenger-smime/");
+
+        registerChrome(chromeType, cf, localeName + "editor/");
+        registerChrome(chromeType, cf, localeName + "navigator/");
+        registerChrome(chromeType, cf, localeName + "aim/");
+        registerChrome(chromeType, cf, localeName + "necko/");
+        registerChrome(chromeType, cf, localeName + "mozldap/");
+        registerChrome(chromeType, cf, localeName + "cookie/");
+        registerChrome(chromeType, cf, localeName + "wallet/");
+        registerChrome(chromeType, cf, localeName + "content-packs/");
+        registerChrome(chromeType, cf, localeName + "help/");
+        registerChrome(chromeType, cf, localeName + "net2phone/");
+        registerChrome(chromeType, cf, localeName + "pipnss/");
+        registerChrome(chromeType, cf, localeName + "pippki/");
+        registerChrome(chromeType, cf, localeName + "forms/");
+
+        registerChrome(chromeType, pf, localeName + "global-platform/");
+        registerChrome(chromeType, pf, localeName + "communicator-platform/");
+        registerChrome(chromeType, pf, localeName + "navigator-platform/");
+
+        err = performInstall(); 
+        logComment("performInstall() returned: " + err);
+    }
+    else
+    {
+        cancelInstall(err);
+        logComment("cancelInstall due to error: " + err);
+    }
+}
+else
+    cancelInstall(INSUFFICIENT_DISK_SPACE);
diff -urN mozilla.orig/xpinstall/packager/unix/makeall.pl mozilla/xpinstall/packager/unix/makeall.pl
--- mozilla.orig/xpinstall/packager/unix/makeall.pl	Thu Mar 21 19:31:16 2002
+++ mozilla/xpinstall/packager/unix/makeall.pl	Thu Mar 21 19:38:27 2002
@@ -72,8 +72,12 @@
 MakeXpiFile("talkback");
 MakeXpiFile("deflenus");
 MakeXpiFile("langruru");
+MakeXpiFile("langukua");
+MakeXpiFile("langdeat");
 MakeXpiFile("langenus");
 MakeXpiFile("regru");
+MakeXpiFile("regua");
+MakeXpiFile("regat");
 MakeXpiFile("regus");
 MakeXpiFile("venkman");
 MakeXpiFile("inspector");
diff -urN mozilla.orig/xpinstall/packager/unix/regat.jst mozilla/xpinstall/packager/unix/regat.jst
--- mozilla.orig/xpinstall/packager/unix/regat.jst	Thu Jan  1 03:00:00 1970
+++ mozilla/xpinstall/packager/unix/regat.jst	Thu Mar 21 19:36:52 2002
@@ -0,0 +1,61 @@
+var srDest = $SpaceRequired$;
+var err;
+var fProgram;
+
+// --- LOCALIZATION NOTE: translate only these ---
+var prettyName = "AT Regional Pack";
+var chromeNode = "AT";
+// --- END LOCALIZABLE RESOURCES ---
+var regName    = "locales/mozilla/" + chromeNode;
+var chromeName = chromeNode + ".jar";
+var localeName = "locale/" + chromeNode + "/";
+
+err = initInstall(prettyName, regName, "$Version$"); 
+logComment("initInstall: " + err);
+
+fProgram = getFolder("Program");
+logComment("fProgram: " + fProgram);
+
+if (verifyDiskSpace(fProgram, srDest))
+{
+    var chromeType = LOCALE;
+    err = addDirectory("",
+                       "bin",
+                       fProgram,
+                       "");
+    logComment("addDirectory() returned: " + err);
+
+    if (err != SUCCESS)
+    {
+        logComment("addDirectory() to " + fProgram + "failed!");
+        // couldn't install globally, try installing to the profile
+        resetError();
+        chromeType |= PROFILE_CHROME;
+        fProgram = getFolder("Profile");
+        logComment("try installing to the profile: " + fProgram);
+        err = addDirectory("","bin/chrome",fProgram,"chrome");
+    }
+ 
+    setPackageFolder(fProgram);
+
+    if (err == SUCCESS)
+    {
+        // register chrome
+        var cf = getFolder(fProgram, "chrome/"+ chromeName);
+        registerChrome(chromeType, cf, localeName + "global-region/");
+        registerChrome(chromeType, cf, localeName + "communicator-region/");
+        registerChrome(chromeType, cf, localeName + "editor-region/");
+        registerChrome(chromeType, cf, localeName + "messenger-region/");
+        registerChrome(chromeType, cf, localeName + "navigator-region/");
+
+        err = performInstall(); 
+        logComment("performInstall() returned: " + err);
+    }
+    else
+    {
+        cancelInstall(err);
+        logComment("cancelInstall due to error: " + err);
+    }
+}
+else
+    cancelInstall(INSUFFICIENT_DISK_SPACE);
diff -urN mozilla.orig/xpinstall/packager/unix/regua.jst mozilla/xpinstall/packager/unix/regua.jst
--- mozilla.orig/xpinstall/packager/unix/regua.jst	Thu Jan  1 03:00:00 1970
+++ mozilla/xpinstall/packager/unix/regua.jst	Thu Mar 21 19:36:28 2002
@@ -0,0 +1,61 @@
+var srDest = $SpaceRequired$;
+var err;
+var fProgram;
+
+// --- LOCALIZATION NOTE: translate only these ---
+var prettyName = "UA Regional Pack";
+var chromeNode = "UA";
+// --- END LOCALIZABLE RESOURCES ---
+var regName    = "locales/mozilla/" + chromeNode;
+var chromeName = chromeNode + ".jar";
+var localeName = "locale/" + chromeNode + "/";
+
+err = initInstall(prettyName, regName, "$Version$"); 
+logComment("initInstall: " + err);
+
+fProgram = getFolder("Program");
+logComment("fProgram: " + fProgram);
+
+if (verifyDiskSpace(fProgram, srDest))
+{
+    var chromeType = LOCALE;
+    err = addDirectory("",
+                       "bin",
+                       fProgram,
+                       "");
+    logComment("addDirectory() returned: " + err);
+
+    if (err != SUCCESS)
+    {
+        logComment("addDirectory() to " + fProgram + "failed!");
+        // couldn't install globally, try installing to the profile
+        resetError();
+        chromeType |= PROFILE_CHROME;
+        fProgram = getFolder("Profile");
+        logComment("try installing to the profile: " + fProgram);
+        err = addDirectory("","bin/chrome",fProgram,"chrome");
+    }
+ 
+    setPackageFolder(fProgram);
+
+    if (err == SUCCESS)
+    {
+        // register chrome
+        var cf = getFolder(fProgram, "chrome/"+ chromeName);
+        registerChrome(chromeType, cf, localeName + "global-region/");
+        registerChrome(chromeType, cf, localeName + "communicator-region/");
+        registerChrome(chromeType, cf, localeName + "editor-region/");
+        registerChrome(chromeType, cf, localeName + "messenger-region/");
+        registerChrome(chromeType, cf, localeName + "navigator-region/");
+
+        err = performInstall(); 
+        logComment("performInstall() returned: " + err);
+    }
+    else
+    {
+        cancelInstall(err);
+        logComment("cancelInstall due to error: " + err);
+    }
+}
+else
+    cancelInstall(INSUFFICIENT_DISK_SPACE);
 
design & coding: Vladimir Lettiev aka crux © 2004-2005