From fab0930d1fe99aaeb7100b79f060f7185486e5e2 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Fri, 20 Nov 2009 12:42:40 -0800 Subject: Move tag ui to the bottom of the form since it's a lower priority Internationalize and simplify our error strings. --- modules/gallery/views/simple_uploader.html.php | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'modules') diff --git a/modules/gallery/views/simple_uploader.html.php b/modules/gallery/views/simple_uploader.html.php index 45fb6a4d..91f6d458 100644 --- a/modules/gallery/views/simple_uploader.html.php +++ b/modules/gallery/views/simple_uploader.html.php @@ -61,20 +61,22 @@ var msg = " - "; if (errorObj.type == "HTTP") { if (errorObj.info == "500") { - msg += "Error occurred processing the file"; + msg += for_js() ?>; // Server error - check server logs } else if (errorObj.info == "404") { - msg += "The upload script was not found."; + msg += for_js() ?>; // Server script not found } else { // Server Error: status: errorObj.info - msg += "Error occurred communication with the server, status: " + errorObj.info; + msg += (for_js() ?>.replace("__INFO__", errorObj.info)); } } else if (errorObj.type == "File Size") { var sizelimit = $("#g-uploadify").uploadifySettings(sizeLimit); msg += fileObj.name+' '+errorObj.type+' Limit: '+Math.round(d.sizeLimit/1024)+'KB'; } else { - msg += "Error occurred communication with the server, error " + errorObj.type + ": " + errorObj.info; + msg += (for_js() ?> + .replace("__INFO__", errorObj.info) + .replace("__TYPE__", errorObj.type)); } $("#g-add-photos-status ul").append( "
  • " + fileObj.name + msg + "
  • "); @@ -130,13 +132,6 @@ - -
    - - -
    - -
    @@ -146,6 +141,13 @@
    + +
    + + +
    + +