X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/0470069371352de4f0b448ea31c0984a8cbdc9d7..ad8c38ed9da0221550a5f9ee955945bb3c3b83ec:/Cydia.app/confirm.js?ds=sidebyside diff --git a/Cydia.app/confirm.js b/Cydia.app/confirm.js index 41f7a0d1..efffdc4a 100644 --- a/Cydia.app/confirm.js +++ b/Cydia.app/confirm.js @@ -7,27 +7,16 @@ $(function () { $(".downloading").remove(); else $("#downloading").html($.xml(downloading)); - + var resuming = sizes[1]; if (resuming == "0.0 B") $(".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"; - $("#i" + i).append("
" + + var version = entry[1]; + if (entry.length >= 4) + version += " " + entry[3]; + $("#i" + i).append("
" + "" + - "" + $.xml(entry[1] + " " + entry[3]) + "" + + "" + "
"); } } 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("
" + - "" + + "" + "" + "
");