]> git.proxmox.com Git - pve-manager.git/commitdiff
gui: tree/SnapshotTree: fix gettext invocation
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 5 Feb 2020 10:58:29 +0000 (11:58 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 5 Feb 2020 19:23:17 +0000 (20:23 +0100)
our gettext extractor cannot handle such statements to extract the
gettext, so change it to two gettexts

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/tree/SnapshotTree.js

index e186bea76e0156c3db269999fee8f01c3fa9787d..0636ef68aadf2d4c8bb2a207ce7d2e6abb01a3e6 100644 (file)
@@ -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',
        },
     },