[pve-devel] [PATCH manager 2/3] Do not try to translate domain specific terms
Emmanuel Kasper
e.kasper at proxmox.com
Wed Jan 18 09:46:04 CET 2017
No one is translating DHCP in his/her own language.
---
www/manager6/ceph/Config.js | 2 +-
www/manager6/ceph/Pool.js | 2 +-
www/manager6/ceph/Status.js | 2 +-
www/manager6/dc/Health.js | 2 +-
www/manager6/lxc/Network.js | 18 +++++++++---------
5 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/www/manager6/ceph/Config.js b/www/manager6/ceph/Config.js
index 6036424..3df51d8 100644
--- a/www/manager6/ceph/Config.js
+++ b/www/manager6/ceph/Config.js
@@ -58,7 +58,7 @@ Ext.define('PVE.node.CephConfigCrush', {
region: 'center'
},
{
- title: gettext('Crush Map'),
+ title: 'Crush Map', // do not localize
xtype: 'pveNodeCephCrushMap',
region: 'east',
split: true,
diff --git a/www/manager6/ceph/Pool.js b/www/manager6/ceph/Pool.js
index 57feb55..240cc2c 100644
--- a/www/manager6/ceph/Pool.js
+++ b/www/manager6/ceph/Pool.js
@@ -35,7 +35,7 @@ Ext.define('PVE.CephCreatePool', {
},
{
xtype: 'pveIntegerField',
- fieldLabel: gettext('Crush RuleSet'),
+ fieldLabel: 'Crush RuleSet', // do not localize
name: 'crush_ruleset',
value: 0,
minValue: 0,
diff --git a/www/manager6/ceph/Status.js b/www/manager6/ceph/Status.js
index 0d2c130..ff71078 100644
--- a/www/manager6/ceph/Status.js
+++ b/www/manager6/ceph/Status.js
@@ -116,7 +116,7 @@ Ext.define('PVE.node.CephStatus', {
itemId: 'iops',
xtype: 'pveRunningChart',
hidden: true,
- title: gettext('IOPS'),
+ title: 'IOPS', // do not localize
renderer: Ext.util.Format.numberRenderer('0,000')
},
{
diff --git a/www/manager6/dc/Health.js b/www/manager6/dc/Health.js
index 78d8922..c99c576 100644
--- a/www/manager6/dc/Health.js
+++ b/www/manager6/dc/Health.js
@@ -132,7 +132,7 @@ Ext.define('PVE.dc.Health', {
width: 250,
columnWidth: undefined,
userCls: 'pointer',
- title: gettext('Ceph'),
+ title: 'Ceph',
xtype: 'pveHealthWidget',
hidden: true,
listeners: {
diff --git a/www/manager6/lxc/Network.js b/www/manager6/lxc/Network.js
index b095005..5eb61fe 100644
--- a/www/manager6/lxc/Network.js
+++ b/www/manager6/lxc/Network.js
@@ -177,7 +177,7 @@ Ext.define('PVE.lxc.NetworkInputPanel', {
items: [
{
xtype: 'label',
- text: gettext('IPv4') + ':'
+ text: 'IPv4:' // do not localize
},
{
xtype: 'radiofield',
@@ -195,7 +195,7 @@ Ext.define('PVE.lxc.NetworkInputPanel', {
},
{
xtype: 'radiofield',
- boxLabel: gettext('DHCP'),
+ boxLabel: 'DHCP', // do not localize
name: 'ipv4mode',
inputValue: 'dhcp',
checked: dhcp4,
@@ -209,7 +209,7 @@ Ext.define('PVE.lxc.NetworkInputPanel', {
vtype: 'IPCIDRAddress',
value: cdata.ip,
disabled: dhcp4,
- fieldLabel: gettext('IPv4/CIDR')
+ fieldLabel: 'IPv4/CIDR' // do not localize
},
{
xtype: 'textfield',
@@ -217,7 +217,7 @@ Ext.define('PVE.lxc.NetworkInputPanel', {
value: cdata.gw,
vtype: 'IPAddress',
disabled: dhcp4,
- fieldLabel: gettext('Gateway') + ' (' + gettext('IPv4') +')',
+ fieldLabel: gettext('Gateway') + ' (IPv4)',
margin: '0 0 3 0' // override bottom margin to account for the menuseparator
},
{
@@ -235,7 +235,7 @@ Ext.define('PVE.lxc.NetworkInputPanel', {
items: [
{
xtype: 'label',
- text: gettext('IPv6') + ':'
+ text: 'IPv6:' // do not localize
},
{
xtype: 'radiofield',
@@ -253,7 +253,7 @@ Ext.define('PVE.lxc.NetworkInputPanel', {
},
{
xtype: 'radiofield',
- boxLabel: gettext('DHCP'),
+ boxLabel: 'DHCP', // do not localize
name: 'ipv6mode',
inputValue: 'dhcp',
checked: dhcp6,
@@ -261,7 +261,7 @@ Ext.define('PVE.lxc.NetworkInputPanel', {
},
{
xtype: 'radiofield',
- boxLabel: gettext('SLAAC'),
+ boxLabel: 'SLAAC', // do not localize
name: 'ipv6mode',
inputValue: 'auto',
checked: auto6,
@@ -275,7 +275,7 @@ Ext.define('PVE.lxc.NetworkInputPanel', {
value: cdata.ip6,
vtype: 'IP6CIDRAddress',
disabled: (dhcp6 || auto6),
- fieldLabel: gettext('IPv6/CIDR')
+ fieldLabel: 'IPv6/CIDR' // do not localize
},
{
xtype: 'textfield',
@@ -283,7 +283,7 @@ Ext.define('PVE.lxc.NetworkInputPanel', {
vtype: 'IP6Address',
value: cdata.gw6,
disabled: (dhcp6 || auto6),
- fieldLabel: gettext('Gateway') + ' (' + gettext('IPv6') +')'
+ fieldLabel: gettext('Gateway') + ' (IPv6)'
}
];
--
2.1.4
More information about the pve-devel
mailing list