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:
parent
060f3559fd
commit
ea6867afff
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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";
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user