File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717use ipl \Html \HtmlDocument ;
1818use ipl \Html \HtmlElement ;
1919use ipl \Html \Text ;
20+ use ipl \I18n \Translation ;
2021use ipl \Stdlib \Filter \Rule ;
2122use ipl \Web \Url ;
2223
2324abstract class DimensionWidget extends BaseHtmlElement
2425{
26+ use Translation;
27+
2528 protected $ tag = 'div ' ;
2629
2730 public function __construct (
@@ -71,7 +74,7 @@ public function assemble(): void
7174 new Attributes ([
7275 'href ' => $ this ->getDetailsUrl (),
7376 'title ' => sprintf (
74- 'Show details for %s: %s ' ,
77+ $ this -> translate ( 'Show details for %s: %s ' ) ,
7578 $ this ->cube ->getDimension ($ this ->dimension ['name ' ])->getLabel (),
7679 $ this ->dimension ['row ' ]->{$ this ->dimension ['name ' ]}
7780 ),
@@ -82,7 +85,7 @@ public function assemble(): void
8285 new HtmlElement ('a ' , new Attributes ([
8386 'class ' => 'icon-filter ' ,
8487 'href ' => $ this ->getSliceUrl (),
85- 'title ' => 'Slice this cube '
88+ 'title ' => $ this -> translate ( 'Slice this cube ' )
8689 ]))
8790 )
8891 );
You can’t perform that action at this time.
0 commit comments