mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-03 03:17:10 +00:00
correctly translate storage content types
This commit is contained in:
parent
8e508c84d5
commit
28b0ead345
@ -891,6 +891,11 @@ Ext.define('PVE.Utils', { statics: {
|
||||
totalText: gettext('Total'),
|
||||
usedText: gettext('Used'),
|
||||
directoryText: gettext('Directory'),
|
||||
imagesText: gettext('Disk image'),
|
||||
backupFileText: gettext('VZDump backup file'),
|
||||
vztmplText: gettext('OpenVZ template'),
|
||||
isoImageText: gettext('ISO image'),
|
||||
containersText: gettext('OpenVZ Container'),
|
||||
|
||||
format_expire: function(date) {
|
||||
if (!date) {
|
||||
@ -943,15 +948,15 @@ Ext.define('PVE.Utils', { statics: {
|
||||
|
||||
Ext.each(value.split(',').sort(), function(ct) {
|
||||
if (ct === 'images') {
|
||||
cta.push('Images');
|
||||
cta.push(PVE.Utils.imagesText);
|
||||
} else if (ct === 'backup') {
|
||||
cta.push('Backups');
|
||||
cta.push(PVE.Utils.backupFileText);
|
||||
} else if (ct === 'vztmpl') {
|
||||
cta.push('Templates');
|
||||
cta.push(PVE.Utils.vztmplText);
|
||||
} else if (ct === 'iso') {
|
||||
cta.push('ISO');
|
||||
cta.push(PVE.Utils.isoImageText);
|
||||
} else if (ct === 'rootdir') {
|
||||
cta.push('Containers');
|
||||
cta.push(PVE.Utils.containersText);
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -185,9 +185,9 @@ Ext.define('PVE.storage.Upload', {
|
||||
{
|
||||
xtype: 'pveKVComboBox',
|
||||
data: [
|
||||
['iso', gettext('ISO image')],
|
||||
['backup', gettext('VZDump backup file')],
|
||||
['vztmpl', gettext('OpenVZ template')]
|
||||
['iso', PVE.Utils.format_content_types('iso')],
|
||||
['backup', PVE.Utils.format_content_types('backup')],
|
||||
['vztmpl', PVE.Utils.format_content_types('vztmpl')]
|
||||
],
|
||||
fieldLabel: gettext('Content'),
|
||||
name: 'content',
|
||||
|
Loading…
Reference in New Issue
Block a user