From 21d429f019ad7e7ebb5474b5f72d22019d473793 Mon Sep 17 00:00:00 2001 From: Yogesh Suhagiya Date: Sat, 19 May 2018 11:47:42 +0530 Subject: [PATCH 1/4] Added language translation for message string --- .../Controller/Adminhtml/System/Message/ListAction.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/code/Magento/AdminNotification/Controller/Adminhtml/System/Message/ListAction.php b/app/code/Magento/AdminNotification/Controller/Adminhtml/System/Message/ListAction.php index c332440276083..e43844ce11e7c 100644 --- a/app/code/Magento/AdminNotification/Controller/Adminhtml/System/Message/ListAction.php +++ b/app/code/Magento/AdminNotification/Controller/Adminhtml/System/Message/ListAction.php @@ -59,8 +59,10 @@ public function execute() if (empty($result)) { $result[] = [ 'severity' => (string)\Magento\Framework\Notification\MessageInterface::SEVERITY_NOTICE, - 'text' => 'You have viewed and resolved all recent system notices. ' - . 'Please refresh the web page to clear the notice alert.', + 'text' => __( + 'You have viewed and resolved all recent system notices. ' + . 'Please refresh the web page to clear the notice alert.' + ) ]; } $this->getResponse()->representJson($this->jsonHelper->jsonEncode($result)); From b4d1fd4cc8f2e8def47f754990a6983a4b6ad5e6 Mon Sep 17 00:00:00 2001 From: Yogesh Suhagiya Date: Sat, 19 May 2018 12:49:56 +0530 Subject: [PATCH 2/4] Format the code --- .../Controller/Adminhtml/System/Message/ListAction.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/code/Magento/AdminNotification/Controller/Adminhtml/System/Message/ListAction.php b/app/code/Magento/AdminNotification/Controller/Adminhtml/System/Message/ListAction.php index e43844ce11e7c..6088afbc2e1a4 100644 --- a/app/code/Magento/AdminNotification/Controller/Adminhtml/System/Message/ListAction.php +++ b/app/code/Magento/AdminNotification/Controller/Adminhtml/System/Message/ListAction.php @@ -59,10 +59,10 @@ public function execute() if (empty($result)) { $result[] = [ 'severity' => (string)\Magento\Framework\Notification\MessageInterface::SEVERITY_NOTICE, - 'text' => __( - 'You have viewed and resolved all recent system notices. ' - . 'Please refresh the web page to clear the notice alert.' - ) + 'text' => __( + 'You have viewed and resolved all recent system notices. ' + . 'Please refresh the web page to clear the notice alert.' + ) ]; } $this->getResponse()->representJson($this->jsonHelper->jsonEncode($result)); From b1764137928000e8a8ba8af509dde0d3abecc5e6 Mon Sep 17 00:00:00 2001 From: Yogesh Suhagiya Date: Sun, 20 May 2018 09:14:03 +0530 Subject: [PATCH 3/4] Added language translation key --- app/code/Magento/AdminNotification/i18n/en_US.csv | 1 + 1 file changed, 1 insertion(+) diff --git a/app/code/Magento/AdminNotification/i18n/en_US.csv b/app/code/Magento/AdminNotification/i18n/en_US.csv index 16c5abb9db0d2..f0d29ddd95ab8 100644 --- a/app/code/Magento/AdminNotification/i18n/en_US.csv +++ b/app/code/Magento/AdminNotification/i18n/en_US.csv @@ -48,3 +48,4 @@ Severity,Severity "Date Added","Date Added" Message,Message Actions,Actions +"You have viewed and resolved all recent system notices. Please refresh the web page to clear the notice alert.","You have viewed and resolved all recent system notices. Please refresh the web page to clear the notice alert." \ No newline at end of file From 0dc700be8ee432bc45fa9d314e7b75a24f86367b Mon Sep 17 00:00:00 2001 From: Yogesh Suhagiya Date: Sun, 20 May 2018 09:15:52 +0530 Subject: [PATCH 4/4] Added language translation key --- app/code/Magento/AdminNotification/i18n/en_US.csv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/AdminNotification/i18n/en_US.csv b/app/code/Magento/AdminNotification/i18n/en_US.csv index f0d29ddd95ab8..db5a4c9254814 100644 --- a/app/code/Magento/AdminNotification/i18n/en_US.csv +++ b/app/code/Magento/AdminNotification/i18n/en_US.csv @@ -48,4 +48,4 @@ Severity,Severity "Date Added","Date Added" Message,Message Actions,Actions -"You have viewed and resolved all recent system notices. Please refresh the web page to clear the notice alert.","You have viewed and resolved all recent system notices. Please refresh the web page to clear the notice alert." \ No newline at end of file +"You have viewed and resolved all recent system notices. Please refresh the web page to clear the notice alert.","You have viewed and resolved all recent system notices. Please refresh the web page to clear the notice alert."