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

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

Патч: mozilla-1.2b-l10nru.patch


diff -urN mozilla.orig/xpinstall/packager/packages-unix mozilla/xpinstall/packager/packages-unix
--- mozilla.orig/xpinstall/packager/packages-unix	Mon Mar  4 17:29:16 2002
+++ mozilla/xpinstall/packager/packages-unix	Thu Mar  7 16:19:19 2002
@@ -8,6 +8,14 @@
 ; ; file comment
 ;
 
+[langruru]
+;
+; ru-RU
+bin/chrome/ru-RU.jar
+bin/chrome/ru-mac.jar
+bin/chrome/ru-unix.jar
+bin/chrome/ru-win.jar
+
 [langenus]
 ;
 ; en-US
@@ -16,6 +24,13 @@
 bin/chrome/en-unix.jar
 bin/chrome/en-win.jar
 
+[regru]
+;
+; RU
+bin/chrome/RU.jar
+bin/defaults/profile/RU/*
+bin/searchplugins/*
+
 [regus]
 ;
 ; US
diff -urN mozilla.orig/xpinstall/packager/unix/langruru.jst mozilla/xpinstall/packager/unix/langruru.jst
--- mozilla.orig/xpinstall/packager/unix/langruru.jst	Thu Jan  1 03:00:00 1970
+++ mozilla/xpinstall/packager/unix/langruru.jst	Thu Mar  7 16:17:53 2002
@@ -0,0 +1,91 @@
+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 = "Russian (RU) Language Pack";
+var langcode = "ru";
+var chromeNode = langcode + "-RU";
+// --- 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 + "chatzilla/");
+        registerChrome(chromeType, cf, localeName + "inspector/");
+
+        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	Tue Dec  4 08:03:13 2001
+++ mozilla/xpinstall/packager/unix/makeall.pl	Thu Mar  7 16:17:53 2002
@@ -71,7 +71,9 @@
 MakeXpiFile("chatzilla");
 MakeXpiFile("talkback");
 MakeXpiFile("deflenus");
+MakeXpiFile("langruru");
 MakeXpiFile("langenus");
+MakeXpiFile("regru");
 MakeXpiFile("regus");
 MakeXpiFile("venkman");
 MakeXpiFile("inspector");
diff -urN mozilla.orig/xpinstall/packager/unix/regru.jst mozilla/xpinstall/packager/unix/regru.jst
--- mozilla.orig/xpinstall/packager/unix/regru.jst	Thu Jan  1 03:00:00 1970
+++ mozilla/xpinstall/packager/unix/regru.jst	Thu Mar  7 16:17:53 2002
@@ -0,0 +1,61 @@
+var srDest = $SpaceRequired$;
+var err;
+var fProgram;
+
+// --- LOCALIZATION NOTE: translate only these ---
+var prettyName = "RU Regional Pack";
+var chromeNode = "RU";
+// --- 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