Skip to content

Commit b1811e9

Browse files
author
Dmytro Vilchynskyi
committed
MAGETWO-36131: Update Content in Magento 2 by Modules - part 3
- fixes after CR
1 parent 525937e commit b1811e9

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

app/code/Magento/Review/Controller/Adminhtml/Product/MassDelete.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function execute()
3131
} catch (LocalizedException $e) {
3232
$this->messageManager->addError($e->getMessage());
3333
} catch (\Exception $e) {
34-
$this->messageManager->addException($e, __('Something went wrong while deleting record(s).'));
34+
$this->messageManager->addException($e, __('Something went wrong while deleting these records.'));
3535
}
3636
}
3737
/** @var \Magento\Backend\Model\View\Result\Redirect $resultRedirect */

app/code/Magento/Sales/Controller/Adminhtml/Order/AddComment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function execute()
2323
try {
2424
$data = $this->getRequest()->getPost('history');
2525
if (empty($data['comment']) && $data['status'] == $order->getDataByKey('status')) {
26-
throw new \Magento\Framework\Exception\LocalizedException(__('Please enter comment text.'));
26+
throw new \Magento\Framework\Exception\LocalizedException(__('Please enter a comment.'));
2727
}
2828

2929
$notify = isset($data['is_customer_notified']) ? $data['is_customer_notified'] : false;

app/code/Magento/Sales/Controller/Adminhtml/Order/Creditmemo/AddComment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function execute()
7979
$data = $this->getRequest()->getPost('comment');
8080
if (empty($data['comment'])) {
8181
throw new \Magento\Framework\Exception\LocalizedException(
82-
__('Please enter Comment Text.')
82+
__('Please enter a comment.')
8383
);
8484
}
8585
$this->creditmemoLoader->setOrderId($this->getRequest()->getParam('order_id'));

app/code/Magento/Sales/Controller/Adminhtml/Order/Invoice/AddComment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function execute()
7474
$this->getRequest()->setParam('invoice_id', $this->getRequest()->getParam('id'));
7575
$data = $this->getRequest()->getPost('comment');
7676
if (empty($data['comment'])) {
77-
throw new LocalizedException(__('Please enter Comment Text.'));
77+
throw new LocalizedException(__('Please enter a comment.'));
7878
}
7979
$invoice = $this->getInvoice();
8080
if (!$invoice) {

app/code/Magento/Sales/Test/Unit/Controller/Adminhtml/Order/Creditmemo/AddCommentTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public function testExecuteException()
212212
*/
213213
public function testExecuteNoComment()
214214
{
215-
$message = 'Please enter Comment Text.';
215+
$message = 'Please enter a comment.';
216216
$response = ['error' => true, 'message' => $message];
217217
$data = [];
218218

app/code/Magento/Shipping/Controller/Adminhtml/Order/Shipment/AddComment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function execute()
6565
$data = $this->getRequest()->getPost('comment');
6666
if (empty($data['comment'])) {
6767
throw new \Magento\Framework\Exception\LocalizedException(
68-
__('Please enter Comment Text.')
68+
__('Please enter a comment.')
6969
);
7070
}
7171
$this->shipmentLoader->setOrderId($this->getRequest()->getParam('order_id'));

dev/tests/integration/testsuite/Magento/Sales/Controller/Adminhtml/OrderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function getAddCommentData()
100100
[
101101
'status' => 'processing',
102102
'comment' => '',
103-
'response' => '{"error":true,"message":"Please enter comment text."}'
103+
'response' => '{"error":true,"message":"Please enter a comment."}'
104104
]
105105
];
106106
}

0 commit comments

Comments
 (0)