From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 937A51FF165 for ; Thu, 23 Oct 2025 10:31:02 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id DE53134A8; Thu, 23 Oct 2025 10:31:29 +0200 (CEST) From: Maximiliano Sandoval To: pve-devel@lists.proxmox.com Date: Thu, 23 Oct 2025 10:30:52 +0200 Message-ID: <20251023083054.116763-1-m.sandoval@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1761208246858 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.097 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] [PATCH manager 1/2] add context to translatable strings X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox VE development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" These will be displayed in translator editors and provide context for translators. Some strings like "Verify State" are not clear in meaning without added context. It is a reasonable assumption for "Verify" to be a verb, since button labels should start with a verb and we do not have enough context in the i18n context to see this is not part of such a label, but in this case we actually mean the state of the verification task. Signed-off-by: Maximiliano Sandoval --- www/manager6/dc/MetricServerView.js | 3 +++ www/manager6/grid/BackupView.js | 1 + www/manager6/sdn/fabrics/openfabric/FabricEdit.js | 3 +++ www/manager6/sdn/zones/VxlanEdit.js | 1 + www/manager6/storage/BackupView.js | 1 + www/manager6/storage/Base.js | 1 + www/manager6/window/Backup.js | 1 + www/manager6/window/Migrate.js | 1 + 8 files changed, 12 insertions(+) diff --git a/www/manager6/dc/MetricServerView.js b/www/manager6/dc/MetricServerView.js index 26e89923..1cb9d516 100644 --- a/www/manager6/dc/MetricServerView.js +++ b/www/manager6/dc/MetricServerView.js @@ -585,6 +585,7 @@ Ext.define('PVE.dc.OpenTelemetryEdit', { name: 'server', fieldLabel: gettext('Server'), allowBlank: false, + // TRANSLATORS: otel-collector is a property of OpenTelemetry. emptyText: gettext('otel-collector.example.com'), }, { @@ -680,6 +681,7 @@ Ext.define('PVE.dc.OpenTelemetryEdit', { name: 'headers_advanced', fieldLabel: gettext('HTTP Headers (JSON)'), labelAlign: 'top', + // TRANSLATORS: These are sample json payloads, only translate the values emptyText: gettext( '{\n "Authorization": "Bearer token",\n "X-Custom-Header": "value"\n}', ), @@ -701,6 +703,7 @@ Ext.define('PVE.dc.OpenTelemetryEdit', { name: 'resource_attributes_advanced', fieldLabel: gettext('Resource Attributes (JSON)'), labelAlign: 'top', + // TRANSLATORS: These are sample json payloads, only translate the values emptyText: gettext( '{\n "environment": "production",\n "datacenter": "dc1",\n "region": "us-east-1"\n}', ), diff --git a/www/manager6/grid/BackupView.js b/www/manager6/grid/BackupView.js index d17c94b9..c1474e04 100644 --- a/www/manager6/grid/BackupView.js +++ b/www/manager6/grid/BackupView.js @@ -376,6 +376,7 @@ Ext.define('PVE.grid.BackupView', { renderer: PVE.Utils.render_backup_encryption, }, { + // TRANSLATORS: The state of the verification task header: gettext('Verify State'), dataIndex: 'verification', renderer: PVE.Utils.render_backup_verification, diff --git a/www/manager6/sdn/fabrics/openfabric/FabricEdit.js b/www/manager6/sdn/fabrics/openfabric/FabricEdit.js index 46dd61c4..14b71fae 100644 --- a/www/manager6/sdn/fabrics/openfabric/FabricEdit.js +++ b/www/manager6/sdn/fabrics/openfabric/FabricEdit.js @@ -43,6 +43,7 @@ Ext.define('PVE.sdn.Fabric.OpenFabric.Fabric.Edit', { }, { xtype: 'proxmoxintegerfield', + // TRANSLATORS: See https://en.wikipedia.org/wiki/IS-IS#Packet_types fieldLabel: gettext('Hello Interval'), labelWidth: 120, name: 'hello_interval', @@ -55,6 +56,8 @@ Ext.define('PVE.sdn.Fabric.OpenFabric.Fabric.Edit', { }, { xtype: 'proxmoxintegerfield', + // TRANSLATORS: Stands for Complete Sequence Number Packet, see + // https://datatracker.ietf.org/doc/html/draft-ietf-lsr-distoptflood#name-flooding-failures fieldLabel: gettext('CSNP Interval'), labelWidth: 120, name: 'csnp_interval', diff --git a/www/manager6/sdn/zones/VxlanEdit.js b/www/manager6/sdn/zones/VxlanEdit.js index 43494dec..4b53c2ff 100644 --- a/www/manager6/sdn/zones/VxlanEdit.js +++ b/www/manager6/sdn/zones/VxlanEdit.js @@ -62,6 +62,7 @@ Ext.define('PVE.sdn.zones.VxlanInputPanel', { width: 600, columns: [ { + // TRANSLATORS: As in "Network Fabric": https://en.wikipedia.org/wiki/Switched_fabric header: gettext('Fabric'), width: 90, dataIndex: 'iface', diff --git a/www/manager6/storage/BackupView.js b/www/manager6/storage/BackupView.js index d2d1c0e6..f43c172d 100644 --- a/www/manager6/storage/BackupView.js +++ b/www/manager6/storage/BackupView.js @@ -213,6 +213,7 @@ Ext.define('PVE.storage.BackupView', { }, }; me.extraColumns.verification = { + // TRANSLATORS: The state of the verification task header: gettext('Verify State'), dataIndex: 'verification', renderer: PVE.Utils.render_backup_verification, diff --git a/www/manager6/storage/Base.js b/www/manager6/storage/Base.js index cf89ef6d..43b988a1 100644 --- a/www/manager6/storage/Base.js +++ b/www/manager6/storage/Base.js @@ -81,6 +81,7 @@ Ext.define('PVE.panel.StorageBase', { addAdvancedWidget({ xtype: 'proxmoxcheckbox', name: 'snapshot-as-volume-chain', + // TRANSLATORS: As in "following the chain of volumes" boxLabel: gettext('Allow Snapshots as Volume-Chain'), deleteEmpty: !me.isCreate, // can only allow to enable this on creation for storages that previously already diff --git a/www/manager6/window/Backup.js b/www/manager6/window/Backup.js index 65ec9659..7c1c54de 100644 --- a/www/manager6/window/Backup.js +++ b/www/manager6/window/Backup.js @@ -41,6 +41,7 @@ Ext.define('PVE.window.Backup', { xtype: 'proxmoxKVComboBox', comboItems: [ ['notification-system', gettext('Use global settings')], + // TRANSLATORS: sendmail is a piece of software ['legacy-sendmail', gettext('Use sendmail (legacy)')], ], fieldLabel: gettext('Notification'), diff --git a/www/manager6/window/Migrate.js b/www/manager6/window/Migrate.js index 88d09189..ff80c70c 100644 --- a/www/manager6/window/Migrate.js +++ b/www/manager6/window/Migrate.js @@ -645,6 +645,7 @@ Ext.define('PVE.window.Migrate', { { xtype: 'proxmoxcheckbox', name: 'withConntrackState', + // TRANSLATORS: See https://www.kernel.org/doc/html/next/networking/netlink_spec/conntrack.html fieldLabel: gettext('Conntrack state'), autoEl: { tag: 'div', -- 2.47.3 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel