]> git.proxmox.com Git - pve-manager.git/commitdiff
Do not turn the strings CT and VM into separate localizable strings
authorEmmanuel Kasper <e.kasper@proxmox.com>
Wed, 23 Mar 2016 12:06:14 +0000 (13:06 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 29 Mar 2016 07:21:14 +0000 (09:21 +0200)
According to the PO files, translators keep 'CT' and 'VM' unchanged

www/manager6/lxc/CmdMenu.js
www/manager6/qemu/CmdMenu.js

index 8758bd4cb660c6bb8fe5951b66fa698dbbcb95fc..c9280a7231bebce2308b5657fbe6b61209d1bc36 100644 (file)
@@ -27,7 +27,7 @@ Ext.define('PVE.lxc.CmdMenu', {
            });
        };
 
-       me.title = gettext('CT') + ' ' + vmid;
+       me.title = 'CT ' + vmid;
 
        me.items = [
            {
@@ -53,7 +53,7 @@ Ext.define('PVE.lxc.CmdMenu', {
                text: gettext('Suspend'),
                icon: '/pve2/images/forward.png',
                handler: function() {
-                   var msg = Ext.String.format(gettext("Do you really want to suspend {0}?"), gettext('CT') + ' ' + vmid);
+                   var msg = Ext.String.format(gettext("Do you really want to suspend {0}?"), 'CT ' + vmid);
                    Ext.Msg.confirm(gettext('Confirm'), msg, function(btn) {
                        if (btn !== 'yes') {
                            return;
@@ -74,7 +74,7 @@ Ext.define('PVE.lxc.CmdMenu', {
                text: gettext('Shutdown'),
                icon: '/pve2/images/stop.png',
                handler: function() {
-                   var msg = Ext.String.format(gettext("Do you really want to shutdown {0}?"), gettext('CT') + ' ' + vmid);
+                   var msg = Ext.String.format(gettext("Do you really want to shutdown {0}?"), 'CT ' + vmid);
                    Ext.Msg.confirm(gettext('Confirm'), msg, function(btn) {
                        if (btn !== 'yes') {
                            return;
@@ -88,7 +88,7 @@ Ext.define('PVE.lxc.CmdMenu', {
                text: gettext('Stop'),
                icon: '/pve2/images/gtk-stop.png',
                handler: function() {
-                   var msg = Ext.String.format(gettext("Do you really want to stop {0}?"), gettext('CT') + ' ' + vmid);
+                   var msg = Ext.String.format(gettext("Do you really want to stop {0}?"), 'CT ' + vmid);
                    Ext.Msg.confirm(gettext('Confirm'), msg, function(btn) {
                        if (btn !== 'yes') {
                            return;
@@ -102,7 +102,7 @@ Ext.define('PVE.lxc.CmdMenu', {
 //             text: gettext('Convert to template'),
 //             icon: '/pve2/images/forward.png',
 //             handler: function() {
-//                 var msg = Ext.String.format(gettext("Do you really want to convert {0} into a template?"), gettext('CT') + ' ' + vmid);
+//                 var msg = Ext.String.format(gettext("Do you really want to convert {0} into a template?"), 'CT ' + vmid);
 //                 Ext.Msg.confirm(gettext('Confirm'), msg, function(btn) {
 //                     if (btn !== 'yes') {
 //                         return;
index 0742d55e985f937b7779caf950dac8d838384332..5e889c693d60882231260b7b19808d589f26799c 100644 (file)
@@ -53,7 +53,7 @@ Ext.define('PVE.qemu.CmdMenu', {
                text: gettext('Suspend'),
                icon: '/pve2/images/forward.png',
                handler: function() {
-                   var msg = Ext.String.format(gettext("Do you really want to suspend {0}?"), gettext('VM') + ' ' + vmid);
+                   var msg = Ext.String.format(gettext("Do you really want to suspend {0}?"), 'VM ' + vmid);
                    Ext.Msg.confirm(gettext('Confirm'), msg, function(btn) {
                        if (btn !== 'yes') {
                            return;
@@ -73,7 +73,7 @@ Ext.define('PVE.qemu.CmdMenu', {
                text: gettext('Shutdown'),
                icon: '/pve2/images/stop.png',
                handler: function() {
-                   var msg = Ext.String.format(gettext("Do you really want to shutdown {0}?"), gettext('VM') + ' ' + vmid);
+                   var msg = Ext.String.format(gettext("Do you really want to shutdown {0}?"), 'VM ' + vmid);
                    Ext.Msg.confirm(gettext('Confirm'), msg, function(btn) {
                        if (btn !== 'yes') {
                            return;
@@ -87,7 +87,7 @@ Ext.define('PVE.qemu.CmdMenu', {
                text: gettext('Stop'),
                icon: '/pve2/images/gtk-stop.png',
                handler: function() {
-                   var msg = Ext.String.format(gettext("Do you really want to stop {0}?"), gettext('VM') + ' ' + vmid);
+                   var msg = Ext.String.format(gettext("Do you really want to stop {0}?"), 'VM ' + vmid);
                    Ext.Msg.confirm(gettext('Confirm'), msg, function(btn) {
                        if (btn !== 'yes') {
                            return;
@@ -112,7 +112,7 @@ Ext.define('PVE.qemu.CmdMenu', {
                text: gettext('Convert to template'),
                icon: '/pve2/images/forward.png',
                handler: function() {
-                   var msg = Ext.String.format(gettext("Do you really want to convert {0} into a template?"), gettext('VM') + ' ' + vmid);
+                   var msg = Ext.String.format(gettext("Do you really want to convert {0} into a template?"), 'VM ' + vmid);
                    Ext.Msg.confirm(gettext('Confirm'), msg, function(btn) {
                        if (btn !== 'yes') {
                            return;