File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
lib/internal/Magento/Framework/View/Model/Layout Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -381,7 +381,7 @@ public function getAllDesignAbstractions()
381
381
$ name = $ node ->getAttribute ('id ' );
382
382
$ info = [
383
383
'name ' => $ name ,
384
- 'label ' => __ ((string )$ node ->getAttribute ('label ' )),
384
+ 'label ' => ( string ) new \ Magento \ Framework \ Phrase ((string )$ node ->getAttribute ('label ' )),
385
385
'design_abstraction ' => $ node ->getAttribute ('design_abstraction ' ),
386
386
];
387
387
$ result [$ name ] = $ info ;
@@ -780,7 +780,7 @@ public function getContainers()
780
780
foreach ($ containerNodes as $ oneContainerNode ) {
781
781
$ label = $ oneContainerNode ->getAttribute ('label ' );
782
782
if ($ label ) {
783
- $ result [$ oneContainerNode ->getAttribute ('name ' )] = __ ($ label );
783
+ $ result [$ oneContainerNode ->getAttribute ('name ' )] = ( string ) new \ Magento \ Framework \ Phrase ($ label );
784
784
}
785
785
}
786
786
return $ result ;
Original file line number Diff line number Diff line change @@ -126,6 +126,6 @@ protected function _getNodeValue(Element $node)
126
126
*/
127
127
protected function _translateValue ($ value )
128
128
{
129
- return __ ($ value );
129
+ return ( string ) new \ Magento \ Framework \ Phrase ($ value );
130
130
}
131
131
}
Original file line number Diff line number Diff line change @@ -82,9 +82,9 @@ protected function _initMessageTemplates()
82
82
{
83
83
if (!$ this ->_messageTemplates ) {
84
84
$ this ->_messageTemplates = [
85
- self ::HELPER_ARGUMENT_TYPE => __ ('Helper arguments should not be used in custom layout updates. ' ),
86
- self ::UPDATER_MODEL => __ ('Updater model should not be used in custom layout updates. ' ),
87
- self ::XML_INVALID => __ ('Please correct the XML data and try again. %value% ' ),
85
+ self ::HELPER_ARGUMENT_TYPE => ( string ) new \ Magento \ Framework \ Phrase ('Helper arguments should not be used in custom layout updates. ' ),
86
+ self ::UPDATER_MODEL => ( string ) new \ Magento \ Framework \ Phrase ('Updater model should not be used in custom layout updates. ' ),
87
+ self ::XML_INVALID => ( string ) new \ Magento \ Framework \ Phrase ('Please correct the XML data and try again. %value% ' ),
88
88
];
89
89
}
90
90
return $ this ;
You can’t perform that action at this time.
0 commit comments