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 += = t("Unable to process this file")->for_js() ?>; // Server error - check server logs } else if (errorObj.info == "404") { - msg += "The upload script was not found."; + msg += = t("The upload script was not found.")->for_js() ?>; // Server script not found } else { // Server Error: status: errorObj.info - msg += "Error occurred communication with the server, status: " + errorObj.info; + msg += (= t("Server error: __INFO__")->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 += (= t("Server error: __INFO__ (__TYPE__)")->for_js() ?> + .replace("__INFO__", errorObj.info) + .replace("__TYPE__", errorObj.type)); } $("#g-add-photos-status ul").append( "