From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <d.csapak@proxmox.com>
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 39CC8647BC
 for <pve-devel@lists.proxmox.com>; Fri, 30 Oct 2020 14:03:31 +0100 (CET)
Received: from firstgate.proxmox.com (localhost [127.0.0.1])
 by firstgate.proxmox.com (Proxmox) with ESMTP id 379A513E0E
 for <pve-devel@lists.proxmox.com>; Fri, 30 Oct 2020 14:03:01 +0100 (CET)
Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com
 [212.186.127.180])
 (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 id D690D13DF6
 for <pve-devel@lists.proxmox.com>; Fri, 30 Oct 2020 14:02:59 +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 A440045F91
 for <pve-devel@lists.proxmox.com>; Fri, 30 Oct 2020 14:02:59 +0100 (CET)
From: Dominik Csapak <d.csapak@proxmox.com>
To: pve-devel@lists.proxmox.com
Date: Fri, 30 Oct 2020 14:02:57 +0100
Message-Id: <20201030130258.5046-4-d.csapak@proxmox.com>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20201030130258.5046-1-d.csapak@proxmox.com>
References: <20201030130258.5046-1-d.csapak@proxmox.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-SPAM-LEVEL: Spam detection results:  0
 AWL 0.439 Adjusted score from AWL reputation of From: address
 KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment
 RCVD_IN_DNSWL_MED        -2.3 Sender listed at https://www.dnswl.org/,
 medium trust
 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/1] ui: Utils: add product specific
 task descriptions
X-BeenThere: pve-devel@lists.proxmox.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Proxmox VE development discussion <pve-devel.lists.proxmox.com>
List-Unsubscribe: <https://lists.proxmox.com/cgi-bin/mailman/options/pve-devel>, 
 <mailto:pve-devel-request@lists.proxmox.com?subject=unsubscribe>
List-Archive: <http://lists.proxmox.com/pipermail/pve-devel/>
List-Post: <mailto:pve-devel@lists.proxmox.com>
List-Help: <mailto:pve-devel-request@lists.proxmox.com?subject=help>
List-Subscribe: <https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel>, 
 <mailto:pve-devel-request@lists.proxmox.com?subject=subscribe>
X-List-Received-Date: Fri, 30 Oct 2020 13:03:31 -0000

move them from widget-toolkit to here
i took the chance, and sorted them alphabetically

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
 www/manager6/Utils.js | 85 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 85 insertions(+)

diff --git a/www/manager6/Utils.js b/www/manager6/Utils.js
index bf9ceda9..b70592b4 100644
--- a/www/manager6/Utils.js
+++ b/www/manager6/Utils.js
@@ -1566,6 +1566,91 @@ Ext.define('PVE.Utils', { utilities: {
     constructor: function() {
 	var me = this;
 	Ext.apply(me, me.utilities);
+
+	Proxmox.Utils.override_task_descriptions({
+	    acmedeactivate: ['ACME Account', gettext('Deactivate')],
+	    acmenewcert: ['SRV', gettext('Order Certificate')],
+	    acmerefresh: ['ACME Account', gettext('Refresh')],
+	    acmeregister: ['ACME Account', gettext('Register')],
+	    acmerenew: ['SRV', gettext('Renew Certificate')],
+	    acmerevoke: ['SRV', gettext('Revoke Certificate')],
+	    acmeupdate: ['ACME Account', gettext('Update')],
+	    'auth-realm-sync': [gettext('Realm'), gettext('Sync')],
+	    'auth-realm-sync-test': [gettext('Realm'), gettext('Sync Preview')],
+	    cephcreatemds: ['Ceph Metadata Server', gettext('Create')],
+	    cephcreatemgr: ['Ceph Manager', gettext('Create')],
+	    cephcreatemon: ['Ceph Monitor', gettext('Create')],
+	    cephcreateosd: ['Ceph OSD', gettext('Create')],
+	    cephcreatepool: ['Ceph Pool', gettext('Create')],
+	    cephdestroymds: ['Ceph Metadata Server', gettext('Destroy')],
+	    cephdestroymgr: ['Ceph Manager', gettext('Destroy')],
+	    cephdestroymon: ['Ceph Monitor', gettext('Destroy')],
+	    cephdestroyosd: ['Ceph OSD', gettext('Destroy')],
+	    cephdestroypool: ['Ceph Pool', gettext('Destroy')],
+	    cephfscreate: ['CephFS', gettext('Create')],
+	    clustercreate: ['', gettext('Create Cluster')],
+	    clusterjoin: ['', gettext('Join Cluster')],
+	    dircreate: [gettext('Directory Storage'), gettext('Create')],
+	    dirremove: [gettext('Directory'), gettext('Remove')],
+	    download: ['', gettext('Download')],
+	    hamigrate: ['HA', gettext('Migrate')],
+	    hashutdown: ['HA', gettext('Shutdown')],
+	    hastart: ['HA', gettext('Start')],
+	    hastop: ['HA', gettext('Stop')],
+	    imgcopy: ['', gettext('Copy data')],
+	    imgdel: ['', gettext('Erase data')],
+	    lvmcreate: [gettext('LVM Storage'), gettext('Create')],
+	    lvmthincreate: [gettext('LVM-Thin Storage'), gettext('Create')],
+	    migrateall: ['', gettext('Migrate all VMs and Containers')],
+	    'move_volume': ['CT', gettext('Move Volume')],
+	    pull_file: ['CT', gettext('Pull file')],
+	    push_file: ['CT', gettext('Push file')],
+	    qmclone: ['VM', gettext('Clone')],
+	    qmconfig: ['VM', gettext('Configure')],
+	    qmcreate: ['VM', gettext('Create')],
+	    qmdelsnapshot: ['VM', gettext('Delete Snapshot')],
+	    qmdestroy: ['VM', gettext('Destroy')],
+	    qmigrate: ['VM', gettext('Migrate')],
+	    qmmove: ['VM', gettext('Move disk')],
+	    qmpause: ['VM', gettext('Pause')],
+	    qmreboot: ['VM', gettext('Reboot')],
+	    qmreset: ['VM', gettext('Reset')],
+	    qmrestore: ['VM', gettext('Restore')],
+	    qmresume: ['VM', gettext('Resume')],
+	    qmrollback: ['VM', gettext('Rollback')],
+	    qmshutdown: ['VM', gettext('Shutdown')],
+	    qmsnapshot: ['VM', gettext('Snapshot')],
+	    qmstart: ['VM', gettext('Start')],
+	    qmstop: ['VM', gettext('Stop')],
+	    qmsuspend: ['VM', gettext('Hibernate')],
+	    qmtemplate: ['VM', gettext('Convert to template')],
+	    spiceproxy: ['VM/CT', gettext('Console') + ' (Spice)'],
+	    spiceshell: ['', gettext('Shell') + ' (Spice)'],
+	    startall: ['', gettext('Start all VMs and Containers')],
+	    stopall: ['', gettext('Stop all VMs and Containers')],
+	    unknownimgdel: ['', gettext('Destroy image from unknown guest')],
+	    vncproxy: ['VM/CT', gettext('Console')],
+	    vncshell: ['', gettext('Shell')],
+	    vzclone: ['CT', gettext('Clone')],
+	    vzcreate: ['CT', gettext('Create')],
+	    vzdelsnapshot: ['CT', gettext('Delete Snapshot')],
+	    vzdestroy: ['CT', gettext('Destroy')],
+	    vzdump: (type, id) => id ? `VM/CT ${id} - ${gettext('Backup')}` : gettext('Backup Job'),
+	    vzmigrate: ['CT', gettext('Migrate')],
+	    vzmount: ['CT', gettext('Mount')],
+	    vzreboot: ['CT', gettext('Reboot')],
+	    vzrestore: ['CT', gettext('Restore')],
+	    vzresume: ['CT', gettext('Resume')],
+	    vzrollback: ['CT', gettext('Rollback')],
+	    vzshutdown: ['CT', gettext('Shutdown')],
+	    vzsnapshot: ['CT', gettext('Snapshot')],
+	    vzstart: ['CT', gettext('Start')],
+	    vzstop: ['CT', gettext('Stop')],
+	    vzsuspend: ['CT', gettext('Suspend')],
+	    vztemplate: ['CT', gettext('Convert to template')],
+	    vzumount: ['CT', gettext('Unmount')],
+	    zfscreate: [gettext('ZFS Storage'), gettext('Create')],
+	});
     }
 
 });
-- 
2.20.1