1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

Feature #3748: Fix tr() calls without the Locale prefix

This commit is contained in:
Carlos Martín 2015-08-28 13:32:18 +02:00
parent 060f3559fd
commit ea6867afff
7 changed files with 9 additions and 9 deletions

View File

@ -254,7 +254,7 @@ define(function(require) {
var cluster_id = $(".resource_list_select", $('#datastore_cluster_raw', dialog)).val();
if (!cluster_id) {
Notifier.notifyError(tr("Please select a cluster for this datastore"));
Notifier.notifyError(Locale.tr("Please select a cluster for this datastore"));
return false;
}

View File

@ -198,10 +198,10 @@ define(function(require) {
if (that.element.TEMPLATE.BODY.ready_status_gate) {
if (vm_info.VM.USER_TEMPLATE.READY == "YES") {
info.push('<span class="has-tip" title="'+tr("The VM is ready")+'"><i class="fa fa-check"/></span>');
info.push('<span class="has-tip" title="'+Locale.tr("The VM is ready")+'"><i class="fa fa-check"/></span>');
} else {
info.push('<span class="has-tip" title="'+tr("Waiting for the VM to be ready")+'"><i class="fa fa-clock-o"/></span>');
info.push('<span class="has-tip" title="'+Locale.tr("Waiting for the VM to be ready")+'"><i class="fa fa-clock-o"/></span>');
}
} else {
info.push("");
@ -236,7 +236,7 @@ define(function(require) {
Vnc.lock();
Sunstone.runAction("VM.startvnc_action", vmId);
} else {
Notifier.notifyError(tr("VNC Connection in progress"));
Notifier.notifyError(Locale.tr("VNC Connection in progress"));
}
return false;

View File

@ -103,7 +103,7 @@ define(function(require) {
function _icmpToSt(icmp_type){
switch( icmp_type ){
case "": return tr("All");
case "": return Locale.tr("All");
case "0": return "0: Echo Reply";
case "3": return "3: Destination Unreachable";
case "4": return "4: Source Quench";

View File

@ -139,7 +139,7 @@ define(function(require) {
Vnc.lock();
Sunstone.runAction("VM.startvnc_action", vmId);
} else {
Notifier.notifyError(tr("VNC Connection in progress"))
Notifier.notifyError(Locale.tr("VNC Connection in progress"))
}
return false;

View File

@ -71,7 +71,7 @@ define(function(require) {
if ($("#selected_resource_id_deploy_vm", context).val()) {
extra_info['host_id'] = $("#selected_resource_id_deploy_vm", context).val();
} else {
Notifier.notifyError(tr("You have not selected a host"));
Notifier.notifyError(Locale.tr("You have not selected a host"));
return false;
}

View File

@ -74,7 +74,7 @@ define(function(require) {
if ($("#selected_resource_id_migrate_vm", context).val()) {
extra_info['host_id'] = $("#selected_resource_id_migrate_vm", context).val();
} else {
notifyError(tr("You have not selected a host"));
notifyError(Locale.tr("You have not selected a host"));
return false;
}

View File

@ -55,7 +55,7 @@ define(function(require) {
that.arTab.setup(context, "update_ar");
$('#update_ar_form',context).on('invalid.fndtn.abide', function () {
Notifier.notifyError(tr("One or more required fields are missing."));
Notifier.notifyError(Locale.tr("One or more required fields are missing."));
}).on('valid.fndtn.abide', function () {
var data = that.arTab.retrieve();