mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 15:34:12 +01: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
|
||||
$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))
|
||||
->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\iUIBlock;
|
||||
use Combodo\iTop\Application\UI\Base\Layout\UIContentBlock;
|
||||
use Dict;
|
||||
use MetaModel;
|
||||
use utils;
|
||||
|
||||
@@ -199,7 +200,7 @@ class BlockIndirectLinksEditTable extends UIContentBlock
|
||||
|
||||
// Panel
|
||||
$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))
|
||||
->AddCSSClass('ibo-datatable-panel');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user