@@ -217,11 +217,12 @@ protected function getEntries()
217
217
if ($ type && $ type != 'order ' ) {
218
218
$ urlAppend = $ type ;
219
219
}
220
- $ type = __ (ucwords ($ type ));
221
- $ title = __ ('Details for %1 #%2 ' , $ type , $ result ['increment_id ' ]);
222
- $ description = '<p> ' . __ ('Notified Date: %1 ' , $ this ->localeDate ->formatDate ($ result ['created_at ' ]))
220
+ $ type = __ (ucwords ($ type ))->render ();
221
+ $ title = __ ('Details for %1 #%2 ' , $ type , $ result ['increment_id ' ])->render ();
222
+ $ description = '<p> '
223
+ . __ ('Notified Date: %1 ' , $ this ->localeDate ->formatDate ($ result ['created_at ' ]))->render ()
223
224
. '<br/> '
224
- . __ ('Comment: %1<br/> ' , $ result ['comment ' ]) . '</p> ' ;
225
+ . __ ('Comment: %1<br/> ' , $ result ['comment ' ])-> render () . '</p> ' ;
225
226
$ url = $ this ->urlBuilder ->getUrl (
226
227
'sales/order/ ' . $ urlAppend ,
227
228
['order_id ' => $ this ->order ->getId ()]
@@ -233,10 +234,10 @@ protected function getEntries()
233
234
'Order #%1 created at %2 ' ,
234
235
$ this ->order ->getIncrementId (),
235
236
$ this ->localeDate ->formatDate ($ this ->order ->getCreatedAt ())
236
- );
237
+ )-> render () ;
237
238
$ url = $ this ->urlBuilder ->getUrl ('sales/order/view ' , ['order_id ' => $ this ->order ->getId ()]);
238
- $ description = '<p> ' . __ ('Current Status: %1<br/> ' , $ this ->order ->getStatusLabel ()) .
239
- __ ('Total: %1<br/> ' , $ this ->order ->formatPrice ($ this ->order ->getGrandTotal ())) . '</p> ' ;
239
+ $ description = '<p> ' . __ ('Current Status: %1<br/> ' , $ this ->order ->getStatusLabel ())-> render () .
240
+ __ ('Total: %1<br/> ' , $ this ->order ->formatPrice ($ this ->order ->getGrandTotal ()))-> render () . '</p> ' ;
240
241
241
242
$ entries [] = ['title ' => $ title , 'link ' => $ url , 'description ' => $ description ];
242
243
@@ -250,7 +251,7 @@ protected function getEntries()
250
251
*/
251
252
protected function getHeader ()
252
253
{
253
- $ title = __ ('Order # %1 Notification(s) ' , $ this ->order ->getIncrementId ());
254
+ $ title = __ ('Order # %1 Notification(s) ' , $ this ->order ->getIncrementId ())-> render () ;
254
255
$ newUrl = $ this ->urlBuilder ->getUrl ('sales/order/view ' , ['order_id ' => $ this ->order ->getId ()]);
255
256
256
257
return ['title ' => $ title , 'description ' => $ title , 'link ' => $ newUrl , 'charset ' => 'UTF-8 ' ];
0 commit comments