[pve-devel] [PATCH manager] Do not translate IT terms which should be used 'as is' in every language

Emmanuel Kasper e.kasper at proxmox.com
Wed Mar 1 11:34:07 CET 2017


for 'Initialize GPT' we use the alternate 'Initialize Disk with GPT' string
which was already existing
---
 www/manager6/Utils.js                | 4 ++--
 www/manager6/grid/FirewallOptions.js | 4 ++--
 www/manager6/lxc/Options.js          | 2 +-
 www/manager6/node/Disks.js           | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/www/manager6/Utils.js b/www/manager6/Utils.js
index 148a122..dc2c9c8 100644
--- a/www/manager6/Utils.js
+++ b/www/manager6/Utils.js
@@ -152,7 +152,7 @@ Ext.define('PVE.Utils', { utilities: {
 	    } else if (el === 'network') {
 		fa.push(gettext('Network'));
 	    } else if (el === 'usb') {
-		fa.push(gettext('USB'));
+		fa.push('USB');
 	    } else if (el === 'memory') {
 		fa.push(gettext('Memory'));
 	    } else if (el === 'cpu') {
@@ -564,7 +564,7 @@ Ext.define('PVE.Utils', { utilities: {
     },
 
     task_desc_table: {
-	diskinit: [ 'Disk', gettext('Initialize GPT') ],
+	diskinit: [ 'Disk', gettext('Initialize Disk with GPT') ],
 	vncproxy: [ 'VM/CT', gettext('Console') ],
 	spiceproxy: [ 'VM/CT', gettext('Console') + ' (Spice)' ],
 	vncshell: [ '', gettext('Shell') ],
diff --git a/www/manager6/grid/FirewallOptions.js b/www/manager6/grid/FirewallOptions.js
index dcc2161..f5f608e 100644
--- a/www/manager6/grid/FirewallOptions.js
+++ b/www/manager6/grid/FirewallOptions.js
@@ -116,8 +116,8 @@ Ext.define('PVE.FirewallOptions', {
 	    add_log_row('smurf_log_level');
 	} else if (me.fwtype === 'vm') {
 	    add_boolean_row('enable', gettext('Firewall'), 0);
-	    add_boolean_row('dhcp', gettext('DHCP'), 0);
-	    add_boolean_row('ndp', gettext('NDP'), 1);
+	    add_boolean_row('dhcp', 'DHCP', 0);
+	    add_boolean_row('ndp', 'NDP', 1);
 	    add_boolean_row('radv', gettext('Router Advertisement'), 0);
 	    add_boolean_row('macfilter', gettext('MAC filter'), 1);
 	    add_boolean_row('ipfilter', gettext('IP filter'), 0);
diff --git a/www/manager6/lxc/Options.js b/www/manager6/lxc/Options.js
index 7bfc8d6..4a43887 100644
--- a/www/manager6/lxc/Options.js
+++ b/www/manager6/lxc/Options.js
@@ -57,7 +57,7 @@ Ext.define('PVE.lxc.Options', {
 		defaultValue: PVE.Utils.unknownText
 	    },
 	    console: {
-		header: gettext('/dev/console'),
+		header: '/dev/console',
 		defaultValue: 1,
 		renderer: PVE.Utils.format_enabled_toggle,
 		editor: caps.vms['VM.Config.Options'] ? {
diff --git a/www/manager6/node/Disks.js b/www/manager6/node/Disks.js
index d689a34..a1a8d36 100644
--- a/www/manager6/node/Disks.js
+++ b/www/manager6/node/Disks.js
@@ -49,7 +49,7 @@ Ext.define('PVE.node.DiskList', {
 	    dataIndex: 'size'
 	},
 	{
-	    header: gettext('GPT'),
+	    header: 'GPT',
 	    width: 60,
 	    align: 'right',
 	    renderer: function(value) {
-- 
2.1.4





More information about the pve-devel mailing list