diff --git a/application/cmdbabstract.class.inc.php b/application/cmdbabstract.class.inc.php
index af8b75fb4..ee42bf9dc 100644
--- a/application/cmdbabstract.class.inc.php
+++ b/application/cmdbabstract.class.inc.php
@@ -35,7 +35,7 @@ abstract class cmdbAbstractObject extends CMDBObject
protected static function MakeHyperLink($sObjClass, $sObjKey, $aAvailableFields)
{
- if ($sObjKey <= 0) return 'undefined'; // Objects built in memory have negative IDs
+ if ($sObjKey <= 0) return ''.Dict::S('UI:UndefinedObject').''; // Objects built in memory have negative IDs
$oAppContext = new ApplicationContext();
$sExtClassNameAtt = MetaModel::GetNameAttributeCode($sObjClass);
@@ -195,8 +195,7 @@ abstract class cmdbAbstractObject extends CMDBObject
$oDoc = $this->Get($sAttCode);
if (is_object($oDoc) && !$oDoc->IsEmpty())
{
- $sHtml .= "
Open in New Window: ".$oDoc->GetDisplayLink($sClass, $this->GetKey(), $sAttCode).", \n";
- $sHtml .= "Download: ".$oDoc->GetDownloadLink($sClass, $this->GetKey(), $sAttCode)."
\n";
}
}
@@ -258,12 +257,12 @@ abstract class cmdbAbstractObject extends CMDBObject
if($iLinkedObjectId == 0)
{
// if 'links' mode is requested the id of the object to link to must be specified
- throw new ApplicationException("Parameter object_id is mandatory when link_attr is specified. Check the definition of the display template.");
+ throw new ApplicationException(Dict::S('UI:Error:MandatoryTemplateParameter_object_id'));
}
if($sTargetAttr == '')
{
// if 'links' mode is requested the d of the object to link to must be specified
- throw new ApplicationException("Parameter target_attr is mandatory when link_attr is specified. Check the definition of the display template.");
+ throw new ApplicationException(Dict::S('UI:Error:MandatoryTemplateParameter_target_attr'));
}
}
$bDisplayMenu = isset($aExtraParams['menu']) ? $aExtraParams['menu'] == true : true;
@@ -312,14 +311,14 @@ abstract class cmdbAbstractObject extends CMDBObject
{
if (!$bSingleSelectMode)
{
- $aAttribs['form::select'] = array('label' => "", 'description' => 'Select / Deselect All');
- }
+ $aAttribs['form::select'] = array('label' => "", 'description' => Dict::S('UI:SelectAllToggle+'));
+ }
else
{
$aAttribs['form::select'] = array('label' => "", 'description' => '');
}
}
- $aAttribs['key'] = array('label' => '', 'description' => 'Click to display');
+ $aAttribs['key'] = array('label' => '', 'description' => Dict::S('UI:ClickToDisplay+'));
foreach($aList as $sAttCode)
{
$aAttribs[$sAttCode] = array('label' => MetaModel::GetLabel($sClassName, $sAttCode), 'description' => MetaModel::GetDescription($sClassName, $sAttCode));
@@ -377,14 +376,14 @@ abstract class cmdbAbstractObject extends CMDBObject
$sFilter = $oSet->GetFilter()->serialize();
$aExtraParams['display_limit'] = false; // To expand the full list
$sExtraParams = addslashes(str_replace('"', "'", json_encode($aExtraParams))); // JSON encode, change the style of the quotes and escape them
- $sHtml .= '
'.utils::GetConfig()->GetMinDisplayLimit().' object(s) displayed out of '.$oSet->Count().' Display All
';
@@ -423,7 +422,7 @@ abstract class cmdbAbstractObject extends CMDBObject
foreach($aAuthorizedClasses as $sAlias => $sClassName) // TO DO: check if the user has enough rights to view the classes of the list...
{
$aList[$sClassName] = MetaModel::GetZListItems($sClassName, 'list');
- $aAttribs['key_'.$sAlias] = array('label' => '', 'description' => 'Click to display');
+ $aAttribs['key_'.$sAlias] = array('label' => '', 'description' => Dict::S('UI:ClickToDisplay+'));
foreach($aList[$sClassName] as $sAttCode)
{
$aAttribs[$sAttCode.'_'.$sAlias] = array('label' => MetaModel::GetLabel($sClassName, $sAttCode), 'description' => MetaModel::GetDescription($sClassName, $sAttCode));
@@ -472,14 +471,14 @@ abstract class cmdbAbstractObject extends CMDBObject
$sFilter = $oSet->GetFilter()->serialize();
$aExtraParams['display_limit'] = false; // To expand the full list
$sExtraParams = addslashes(str_replace('"', "'", json_encode($aExtraParams))); // JSON encode, change the style of the quotes and escape them
- $sHtml .= '
'.utils::GetConfig()->GetMinDisplayLimit().' object(s) displayed out of '.$oSet->Count().' Display All