mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°5904 Fix hardcoded strings when existing dict entries were available
This commit is contained in:
@@ -144,7 +144,7 @@ class BlockDirectLinksEditTable extends UIContentBlock
|
|||||||
|
|
||||||
// Panel
|
// Panel
|
||||||
$aTablePanel = PanelUIBlockFactory::MakeForClass($this->oUILinksDirectWidget->GetLinkedClass(), $this->oAttributeLinkedSet->GetLabel())
|
$aTablePanel = PanelUIBlockFactory::MakeForClass($this->oUILinksDirectWidget->GetLinkedClass(), $this->oAttributeLinkedSet->GetLabel())
|
||||||
->SetSubTitle(sprintf('Total: %d objects.', count($aRows)))
|
->SetSubTitle(Dict::Format('UI:Pagination:HeaderNoSelection', count($aRows)))
|
||||||
->SetIcon(MetaModel::GetClassIcon($this->oUILinksDirectWidget->GetLinkedClass(), false))
|
->SetIcon(MetaModel::GetClassIcon($this->oUILinksDirectWidget->GetLinkedClass(), false))
|
||||||
->AddCSSClass('ibo-datatable-panel');
|
->AddCSSClass('ibo-datatable-panel');
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ use Combodo\iTop\Application\UI\Base\Component\Panel\PanelUIBlockFactory;
|
|||||||
use Combodo\iTop\Application\UI\Base\Component\Toolbar\ToolbarUIBlockFactory;
|
use Combodo\iTop\Application\UI\Base\Component\Toolbar\ToolbarUIBlockFactory;
|
||||||
use Combodo\iTop\Application\UI\Base\iUIBlock;
|
use Combodo\iTop\Application\UI\Base\iUIBlock;
|
||||||
use Combodo\iTop\Application\UI\Base\Layout\UIContentBlock;
|
use Combodo\iTop\Application\UI\Base\Layout\UIContentBlock;
|
||||||
|
use Dict;
|
||||||
use MetaModel;
|
use MetaModel;
|
||||||
use utils;
|
use utils;
|
||||||
|
|
||||||
@@ -199,7 +200,7 @@ class BlockIndirectLinksEditTable extends UIContentBlock
|
|||||||
|
|
||||||
// Panel
|
// Panel
|
||||||
$aTablePanel = PanelUIBlockFactory::MakeForClass($this->oUILinksWidget->GetRemoteClass(), $this->oAttributeLinkedSetIndirect->GetLabel())
|
$aTablePanel = PanelUIBlockFactory::MakeForClass($this->oUILinksWidget->GetRemoteClass(), $this->oAttributeLinkedSetIndirect->GetLabel())
|
||||||
->SetSubTitle(sprintf('Total: %d objects.', count($aForm)))
|
->SetSubTitle(Dict::Format('UI:Pagination:HeaderNoSelection', count($aForm)))
|
||||||
->SetIcon(MetaModel::GetClassIcon($this->oUILinksWidget->GetRemoteClass(), false))
|
->SetIcon(MetaModel::GetClassIcon($this->oUILinksWidget->GetRemoteClass(), false))
|
||||||
->AddCSSClass('ibo-datatable-panel');
|
->AddCSSClass('ibo-datatable-panel');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user