diff --git a/www/manager/Utils.js b/www/manager/Utils.js index 1aee684a..7eb58ea1 100644 --- a/www/manager/Utils.js +++ b/www/manager/Utils.js @@ -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); } }); diff --git a/www/manager/storage/ContentView.js b/www/manager/storage/ContentView.js index 066f125c..3316a3c4 100644 --- a/www/manager/storage/ContentView.js +++ b/www/manager/storage/ContentView.js @@ -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',