[pve-devel] [PATCH manager] gui: tree/SnapshotTree: fix gettext invocation

Dominik Csapak d.csapak at proxmox.com
Wed Feb 5 11:58:29 CET 2020


our gettext extractor cannot handle such statements to extract the
gettext, so change it to two gettexts

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/tree/SnapshotTree.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/manager6/tree/SnapshotTree.js b/www/manager6/tree/SnapshotTree.js
index e186bea7..0636ef68 100644
--- a/www/manager6/tree/SnapshotTree.js
+++ b/www/manager6/tree/SnapshotTree.js
@@ -22,7 +22,7 @@ Ext.define('PVE.guest.SnapshotTree', {
 	    canRollback: (get) => get('rollbackAllowed') && get('isSnapshot'),
 	    canRemove: (get) => get('snapshotAllowed') && get('isSnapshot'),
 	    isSnapshot: (get) => get('selected') && get('selected') !== 'current',
-	    buttonText: (get) => gettext(get('snapshotAllowed') ? 'Edit' : 'View'),
+	    buttonText: (get) => get('snapshotAllowed') ? gettext('Edit') : gettext('View'),
 	    showMemory: (get) => get('type') === 'qemu',
 	},
     },
-- 
2.20.1





More information about the pve-devel mailing list