]> git.saurik.com Git - cydia.git/blobdiff - Cydia.app/confirm.js
Fix the type of the ellipsis: argument.
[cydia.git] / Cydia.app / confirm.js
index 5322af695abc8832d9fe71ec6508228bf79fe38f..cc00bf4727fbdd9a9d5fd5908351f2a73eb216cc 100644 (file)
@@ -13,21 +13,10 @@ $(function () {
             $(".resuming").remove();
         else
         $("#resuming").html($.xml(resuming));
-
-        var size = sizes[2];
-        var negative;
-
-        if (size.charAt(0) != '-')
-            negative = false;
-        else {
-            negative = true;
-            size = size.substr(1);
-        }
-
-        $("#disk-key").html(negative ? "Disk Freeing" : "Disk Using");
-        $("#disk-value").html($.xml(size));
     } else for (var i = 0; i != issues.length; ++i) {
-        document.title = "Cannot Comply";
+        document.title = cydia.localize("CANNOT_COMPLY");
+        
+        $(".queue").remove();
 
         $("._issues").remove();
 
@@ -43,19 +32,22 @@ $(function () {
             var type = entry[0];
             if (type == "PreDepends")
                 type = "Depends";
+            var version = entry[1];
+            if (entry.length >= 4)
+                version += " " + entry[3];
             $("#i" + i).append("<div class=\"clearfix\"><div>" +
                 "<label>" + $.xml(type) + "</label>" +
-                "<label>" + $.xml(entry[1] + " " + entry[3]) + "</label>" +
+                "<label>" + $.xml(version) + "</label>" +
             "</div></div>");
         }
     }
 
     var keys = [
-        "Install",
-        "Reinstall",
-        "Upgrade",
-        "Downgrade",
-        "Remove"
+        "INSTALL",
+        "REINSTALL",
+        "UPGRADE",
+        "DOWNGRADE",
+        "REMOVE"
     ];
 
     for (var i = 0; i != 5; ++i) {
@@ -64,7 +56,7 @@ $(function () {
 
         if (length != 0) {
             $("#modifications").append("<div class=\"clearfix\"><div>" +
-                "<label>" + $.xml(keys[i]) + "</label>" +
+                "<label>" + cydia.localize($.xml(keys[i])) + "</label>" +
                 "<label id=\"c" + i + "\"></label>" +
             "</div></div>");