]> git.saurik.com Git - cydia.git/blobdiff - Cydia.app/confirm.js
Fixed memory retain issue in _H<> and a crash bug in sources_ (causing nils).
[cydia.git] / Cydia.app / confirm.js
index 75fe70b56d483a8640d27bcef73b11d843864cee..bd78c2e5da8022c714853809218b3ed5c1927a42 100644 (file)
@@ -24,17 +24,17 @@ $(function () {
             size = size.substr(1);
         }
 
-        $("#disk-key").html(negative ? "Disk Freeing" : "Disk Using");
+        $("#disk-key").html(cydia.localize(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");
 
         $("._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>"
         );
 
@@ -43,19 +43,19 @@ $(function () {
             var type = entry[0];
             if (type == "PreDepends")
                 type = "Depends";
-            $("#i" + i).append("<div><div>" +
-                "<label>" + type + "</label>" +
-                "<div>" + entry[1] + " " + entry[3] + "</div>" +
+            $("#i" + i).append("<div class=\"clearfix\"><div>" +
+                "<label>" + $.xml(type) + "</label>" +
+                "<label>" + $.xml(entry[1] + " " + entry[3]) + "</label>" +
             "</div></div>");
         }
     }
 
     var keys = [
-        "Install",
-        "Reinstall",
-        "Upgrade",
-        "Downgrade",
-        "Remove"
+        "INSTALL",
+        "REINSTALL",
+        "UPGRADE",
+        "DOWNGRADE",
+        "REMOVE"
     ];
 
     for (var i = 0; i != 5; ++i) {
@@ -64,8 +64,8 @@ $(function () {
 
         if (length != 0) {
             $("#modifications").append("<div class=\"clearfix\"><div>" +
-                "<label>" + keys[i] + "</label>" +
-                "<div id=\"c" + i + "\"></div>" +
+                "<label>" + cydia.localize($.xml(keys[i])) + "</label>" +
+                "<label id=\"c" + i + "\"></label>" +
             "</div></div>");
 
             var value = "";