use translated strings in format_ha()

This commit is contained in:
Dietmar Maurer 2016-04-19 09:37:26 +02:00
parent ced1677b2b
commit 45ab85bb2e

View File

@ -725,6 +725,8 @@ Ext.define('PVE.Utils', { statics: {
vztmplText: gettext('Container template'),
isoImageText: gettext('ISO image'),
containersText: gettext('Container'),
stateText: gettext('State'),
groupText: gettext('Group'),
format_expire: function(date) {
if (!date) {
@ -782,10 +784,10 @@ Ext.define('PVE.Utils', { statics: {
var text = PVE.Utils.format_boolean(value.managed);
if (value.managed) {
text += ', State: ';
text += ', ' + PVE.Utils.stateText + ': ';
text += value.state ? value.state : PVE.Utils.noneText;
text += ', Group: ';
text += ', ' + PVE.Utils.groupText + ': ';
text += value.group ? value.group : PVE.Utils.noneText;
}