#148 Allow overloading attribute/enum labels in the dictionary

SVN:trunk[1477]
This commit is contained in:
Romain Quetiez
2011-08-19 15:30:43 +00:00
parent cc7844ea10
commit 92ac1fe2ca
3 changed files with 139 additions and 34 deletions

View File

@@ -672,7 +672,7 @@ class DisplayBlock
$oFilter->AddCondition($sStateAttrCode, $sStateValue, '=');
$oSet = new DBObjectSet($oFilter);
$aCounts[$sStateValue] = $oSet->Count();
$aStateLabels[$sStateValue] = Dict::S("Class:".$oAttDef->GetHostClass()."/Attribute:$sStateAttrCode/Value:$sStateValue");
$aStateLabels[$sStateValue] = $oAttDef->GetValueLabel($sStateValue);
if ($aCounts[$sStateValue] == 0)
{
$aCounts[$sStateValue] = '-';