diff --git a/application/cmdbabstract.class.inc.php b/application/cmdbabstract.class.inc.php index 433055af4..af8b75fb4 100644 --- a/application/cmdbabstract.class.inc.php +++ b/application/cmdbabstract.class.inc.php @@ -951,7 +951,7 @@ abstract class cmdbAbstractObject extends CMDBObject $sOperation = ($oObjectToClone == null) ? 'apply_new' : 'apply_clone'; $sClass = ($oObjectToClone == null) ? $sClass : get_class($oObjectToClone); $sStateAttCode = MetaModel::GetStateAttributeCode($sClass); - $oPage->add("
\n"); + $oPage->add("\n"); $aStates = MetaModel::EnumStates($sClass); if ($oObjectToClone == null) { diff --git a/application/displayblock.class.inc.php b/application/displayblock.class.inc.php index 6eae0ff4b..2656f5dc3 100644 --- a/application/displayblock.class.inc.php +++ b/application/displayblock.class.inc.php @@ -123,12 +123,12 @@ class DisplayBlock if(empty($aParams['object_id'])) { // if 'links' mode is requested the d 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(empty($aParams['target_attr'])) { // if 'links' mode is requested the id 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_link_attr')); } } @@ -234,7 +234,7 @@ class DisplayBlock { // render it as an Ajax (asynchronous) call $sHtml .= "
\n"; - $sHtml .= $oPage->GetP(" Loading..."); + $sHtml .= $oPage->GetP(" ".Dict::S('UI:Loading')); $sHtml .= "
\n"; $sHtml .= '