[pve-devel] [PATCH manager v2 4/5] ui: pci map edit: fix typos in warnings and use gettexts

Dominik Csapak d.csapak at proxmox.com
Wed Jun 21 09:41:41 CEST 2023


so they can be translated

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
new in v2
 www/manager6/window/PCIMapEdit.js | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/www/manager6/window/PCIMapEdit.js b/www/manager6/window/PCIMapEdit.js
index f243362b..2b268719 100644
--- a/www/manager6/window/PCIMapEdit.js
+++ b/www/manager6/window/PCIMapEdit.js
@@ -163,8 +163,7 @@ Ext.define('PVE.window.PCIMapEditWindow', {
 		    hidden: true,
 		    columnWidth: 1,
 		    padding: '0 0 10 0',
-		    value: 'No IOMMU detected, please activate it.' +
-		    'See Documentation for further information.',
+		    value: gettext('No IOMMU detected, please activate it. See Documentation for further information.'),
 		    userCls: 'pmx-hint',
 		},
 		{
@@ -173,8 +172,7 @@ Ext.define('PVE.window.PCIMapEditWindow', {
 		    hidden: true,
 		    columnWidth: 1,
 		    padding: '0 0 10 0',
-		    value: 'When multiple devices are selected, the first free one will be chosen' +
-			' on guest start.',
+		    value: gettext('When multiple devices are selected, the first free one will be chosen on guest start.'),
 		    userCls: 'pmx-hint',
 		},
 		{
@@ -184,7 +182,7 @@ Ext.define('PVE.window.PCIMapEditWindow', {
 		    columnWidth: 1,
 		    padding: '0 0 10 0',
 		    itemId: 'iommuwarning',
-		    value: 'The selected Device is not in a seperate IOMMU group, make sure this is intended.',
+		    value: gettext('A selected device is not in a separate IOMMU group, make sure this is intended.'),
 		    userCls: 'pmx-hint',
 		},
 	    ],
-- 
2.30.2






More information about the pve-devel mailing list