summaryrefslogtreecommitdiff
path: root/modules/gallery/views
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-07-12 12:37:01 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-07-12 12:37:01 -0700
commit75be4ab2e62004811ba7086376bf5abeca4cf791 (patch)
treec510704619b98ebdf647010b9e88119170f98b2d /modules/gallery/views
parentaa0209d6d3d8535b9bbaaaa6664aa5769ab5f8a6 (diff)
parente2967aa1c1a0232e1a1f162db46e6f6db7154dac (diff)
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/gallery/views')
-rw-r--r--modules/gallery/views/simple_uploader.html.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/gallery/views/simple_uploader.html.php b/modules/gallery/views/simple_uploader.html.php
index 92155434..06a2eaff 100644
--- a/modules/gallery/views/simple_uploader.html.php
+++ b/modules/gallery/views/simple_uploader.html.php
@@ -255,9 +255,11 @@
function upload_complete(file) {
var stats = this.getStats();
- $("#gUploadQueueInfo").text("(<?= t("completed") ?> " + stats.successful_uploads +
- " <?= t("of") ?> " + (stats.files_queued + stats.successful_uploads +
- stats.upload_errors + stats.upload_cancelled + stats.queue_errors) + ")");
+ var msg = "(<?= t("completed __COMPLETED__ of __TOTAL__") ?>)";
+ msg = msg.replace("__COMPLETED__", stats.successful_uploads);
+ msg = msg.replace("__TOTAL__", stats.files_queued + stats.successful_uploads +
+ stats.upload_errors + stats.upload_cancelled + stats.queue_errors);
+ $("#gUploadQueueInfo").text(msg);
if (stats.files_queued === 0) {
$("#gUploadCancel").hide();
}