Skip to content

Commit 02516c8

Browse files
author
Oleksandr Iegorov
committed
Merge branch 'MC-19238' of https://github.com/magento-tango/magento2ce into PR-2019-08-22
2 parents 59fa1f3 + 4ffa65d commit 02516c8

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

app/code/Magento/Sales/Model/Rss/OrderStatus.php

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -217,11 +217,12 @@ protected function getEntries()
217217
if ($type && $type != 'order') {
218218
$urlAppend = $type;
219219
}
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()
223224
. '<br/>'
224-
. __('Comment: %1<br/>', $result['comment']) . '</p>';
225+
. __('Comment: %1<br/>', $result['comment'])->render() . '</p>';
225226
$url = $this->urlBuilder->getUrl(
226227
'sales/order/' . $urlAppend,
227228
['order_id' => $this->order->getId()]
@@ -233,10 +234,10 @@ protected function getEntries()
233234
'Order #%1 created at %2',
234235
$this->order->getIncrementId(),
235236
$this->localeDate->formatDate($this->order->getCreatedAt())
236-
);
237+
)->render();
237238
$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>';
240241

241242
$entries[] = ['title' => $title, 'link' => $url, 'description' => $description];
242243

@@ -250,7 +251,7 @@ protected function getEntries()
250251
*/
251252
protected function getHeader()
252253
{
253-
$title = __('Order # %1 Notification(s)', $this->order->getIncrementId());
254+
$title = __('Order # %1 Notification(s)', $this->order->getIncrementId())->render();
254255
$newUrl = $this->urlBuilder->getUrl('sales/order/view', ['order_id' => $this->order->getId()]);
255256

256257
return ['title' => $title, 'description' => $title, 'link' => $newUrl, 'charset' => 'UTF-8'];

0 commit comments

Comments
 (0)