From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id BA4BCB3B13 for ; Wed, 29 Nov 2023 14:21:51 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 9DFCC764F for ; Wed, 29 Nov 2023 14:21:21 +0100 (CET) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Wed, 29 Nov 2023 14:21:20 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 685C640B46 for ; Wed, 29 Nov 2023 14:21:20 +0100 (CET) From: Maximiliano Sandoval To: pve-devel@lists.proxmox.com Date: Wed, 29 Nov 2023 14:21:17 +0100 Message-Id: <20231129132117.217210-1-m.sandoval@proxmox.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.002 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 T_SCC_BODY_TEXT_LINE -0.01 - Subject: [pve-devel] [PATCH widget-toolkit] i18n: mark strings as translatable 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: , X-List-Received-Date: Wed, 29 Nov 2023 13:21:51 -0000 Note that ACME is already in 3 translatable strings, a similar remark applies to N/A which is already translated in many languages. Signed-off-by: Maximiliano Sandoval --- src/node/DNSView.js | 2 +- src/panel/ACMEDomains.js | 2 +- src/panel/DiskList.js | 6 +++--- src/window/NotificationMatcherEdit.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/node/DNSView.js b/src/node/DNSView.js index 4782f9c..d2a784f 100644 --- a/src/node/DNSView.js +++ b/src/node/DNSView.js @@ -21,7 +21,7 @@ Ext.define('Proxmox.node.DNSView', { run_editor: run_editor, rows: { search: { - header: 'Search domain', + header: gettext('Search domain'), required: true, renderer: Ext.htmlEncode, }, diff --git a/src/panel/ACMEDomains.js b/src/panel/ACMEDomains.js index a7fb088..9e2e34b 100644 --- a/src/panel/ACMEDomains.js +++ b/src/panel/ACMEDomains.js @@ -10,7 +10,7 @@ Ext.define('Proxmox.panel.ACMEDomains', { mixins: ['Proxmox.Mixin.CBind'], margin: '10 0 0 0', - title: 'ACME', + title: gettext('ACME'), emptyText: gettext('No Domains configured'), diff --git a/src/panel/DiskList.js b/src/panel/DiskList.js index 4808f5c..dc10ac5 100644 --- a/src/panel/DiskList.js +++ b/src/panel/DiskList.js @@ -325,14 +325,14 @@ Ext.define('Proxmox.DiskList', { dataIndex: 'status', }, { - header: 'Mounted', + header: gettext('Mounted'), width: 60, align: 'right', renderer: Proxmox.Utils.format_boolean, dataIndex: 'mounted', }, { - header: 'Wearout', + header: gettext('Wearout'), width: 90, sortable: true, align: 'right', @@ -341,7 +341,7 @@ Ext.define('Proxmox.DiskList', { if (Ext.isNumeric(value)) { return (100 - value).toString() + '%'; } - return 'N/A'; + return gettext('N/A'); }, }, ], diff --git a/src/window/NotificationMatcherEdit.js b/src/window/NotificationMatcherEdit.js index f88576a..e717ad7 100644 --- a/src/window/NotificationMatcherEdit.js +++ b/src/window/NotificationMatcherEdit.js @@ -1025,7 +1025,7 @@ Ext.define('Proxmox.panel.NotificationMatchRuleSettings', { ], }, { - fieldLabel: 'Match Type', + fieldLabel: gettext('Match Type'), xtype: 'proxmoxKVComboBox', reference: 'type', isFormField: false, -- 2.39.2