N.1072 Localization for magic attributes archive_date (completed the existing implementation) and obsolescence_date (full implementation)

SVN:trunk[4946]
This commit is contained in:
Romain Quetiez
2017-09-27 12:26:44 +00:00
parent 776385cdc9
commit 7391f64776
16 changed files with 44 additions and 3 deletions

View File

@@ -7809,3 +7809,16 @@ class AttributeObsolescenceFlag extends AttributeBoolean
}
}
class AttributeObsolescenceDate extends AttributeDate
{
public function GetLabel($sDefault = null)
{
$sDefault = Dict::S('Core:AttributeObsolescenceDate/Label', $sDefault);
return parent::GetLabel($sDefault);
}
public function GetDescription($sDefault = null)
{
$sDefault = Dict::S('Core:AttributeObsolescenceDate/Label+', $sDefault);
return parent::GetDescription($sDefault);
}
}