]> git.saurik.com Git - cydia.git/blobdiff - Cydia.app/confirm.js
Remove Disk Using/Freeing.
[cydia.git] / Cydia.app / confirm.js
index 9210295d033072a0adc60ffd706dac7b6bc604e5..5ef99bf4e70298c1b21b73e5294f73d442431c7d 100644 (file)
@@ -13,26 +13,15 @@ $(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 = cydia.localize("CANNOT_COMPLY");
+
         $("._issues").remove();
 
         var issue = issues[i];
 
         $("#issues").append(
-            "<label style=\"color: #704d4d\">" + issue[0] + "</label>" +
+            "<label style=\"color: #704d4d\">" + $.xml(issue[0]) + "</label>" +
             "<fieldset style=\"background-color: #dddddd\" class=\"clearfix\" id=\"i" + i + "\"></fieldset>"
         );
 
@@ -41,19 +30,22 @@ $(function () {
             var type = entry[0];
             if (type == "PreDepends")
                 type = "Depends";
-            $("#i" + i).append("<div>" +
-                "<label>" + type + "</label>" +
-                "<div>" + entry[1] + " " + entry[3] + "</div>" +
-            "</div>");
+            var version = entry[1];
+            if (entry.length >= 4)
+                version += " " + entry[3];
+            $("#i" + i).append("<div class=\"clearfix\"><div>" +
+                "<label>" + $.xml(type) + "</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) {
@@ -61,10 +53,10 @@ $(function () {
         var length = list.length;
 
         if (length != 0) {
-            $("#modifications").append("<div class=\"clearfix\">" +
-                "<label>" + keys[i] + "</label>" +
-                "<div id=\"c" + i + "\"></div>" +
-            "</div>");
+            $("#modifications").append("<div class=\"clearfix\"><div>" +
+                "<label>" + cydia.localize($.xml(keys[i])) + "</label>" +
+                "<label id=\"c" + i + "\"></label>" +
+            "</div></div>");
 
             var value = "";
             for (var j = 0; j != length; ++j) {