From ef5877779d23a2a248fe107c60471bb1244d99e6 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Tue, 27 Apr 2010 13:10:27 +0000 Subject: [PATCH] - Implementation of the localization... on going... SVN:trunk[362] --- application/cmdbabstract.class.inc.php | 2 +- application/displayblock.class.inc.php | 62 +++++++++++++------------- application/itopwebpage.class.inc.php | 20 ++++++--- application/menunode.class.inc.php | 4 +- application/nicewebpage.class.inc.php | 8 +++- application/template.class.inc.php | 6 ++- 6 files changed, 61 insertions(+), 41 deletions(-) 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 .= '