mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
localize Download Volume action message.
This commit is contained in:
parent
617569a21b
commit
6d754176ce
@ -1158,9 +1158,9 @@ function handleErrorInDialog2(errorMsg, $thisDialog) {
|
||||
var $infoContainer = $thisDialog.find("#info_container");
|
||||
|
||||
if(errorMsg != null && errorMsg.length > 0)
|
||||
$infoContainer.find("#info").text(fromdb(errorMsg));
|
||||
$infoContainer.find("#info").text(errorMsg);
|
||||
else
|
||||
$infoContainer.find("#info").text("action failed");
|
||||
$infoContainer.find("#info").text(g_dictionary["label.failed"]);
|
||||
|
||||
$thisDialog.find("#spinning_wheel").hide();
|
||||
$infoContainer.show();
|
||||
|
||||
@ -620,7 +620,8 @@ function doDownloadVolume($actionLink, $detailsTab, $midmenuItem1) {
|
||||
$infoContainer.find("#info").html(htmlMsg);
|
||||
$infoContainer.show();
|
||||
} else if (result.jobstatus == 2) { // Failed
|
||||
handleErrorInDialog2(fromdb(result.jobresult.errortext), $dialogDownloadVolume);
|
||||
var errorMsg = g_dictionary["label.failed"] + " - " + g_dictionary["label.error.code"] + " " + fromdb(result.jobresult.errorcode);
|
||||
handleErrorInDialog2(errorMsg, $dialogDownloadVolume);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user