Skip to content

Commit fa1d472

Browse files
author
Joan He
committed
Merge remote-tracking branch 'upstream/develop' into develop
2 parents 354e6b4 + 378cab2 commit fa1d472

File tree

819 files changed

+12689
-4309
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

819 files changed

+12689
-4309
lines changed

app/code/Magento/AdminNotification/Block/Window.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ protected function _toHtml()
7676
if ($this->canShow()) {
7777
$this->setHeaderText($this->escapeHtml(__('Incoming Message')));
7878
$this->setCloseText($this->escapeHtml(__('close')));
79-
$this->setReadDetailsText($this->escapeHtml(__('Read details')));
79+
$this->setReadDetailsText($this->escapeHtml(__('Read Details')));
8080
$this->setNoticeMessageText($this->escapeHtml($this->_getLatestItem()->getTitle()));
8181
$this->setNoticeMessageUrl($this->escapeUrl($this->_getLatestItem()->getUrl()));
8282
$this->setSeverityText('critical');

app/code/Magento/AdminNotification/Model/System/Message/Baseurl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function getText()
120120
{
121121
return __(
122122
'{{base_url}} is not recommended to use in a production environment to declare the Base Unsecure '
123-
. 'URL / Base Secure URL. It is highly recommended to change this value in your Magento '
123+
. 'URL / Base Secure URL. We highly recommend changing this value in your Magento '
124124
. '<a href="%1">configuration</a>.',
125125
$this->_getConfigUrl()
126126
);

app/code/Magento/AdminNotification/Model/System/Message/Media/Synchronization/Error.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ protected function _shouldBeDisplayed()
3434
public function getText()
3535
{
3636
return __(
37-
'One or more media files failed to be synchronized during the media storages synchronization process. '
38-
. 'Refer to the log file for details.'
37+
'We were unable to synchronize one or more media files. Please refer to the log file for details.'
3938
);
4039
}
4140
}

app/code/Magento/AdminNotification/Model/System/Message/Security.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ public function isDisplayed()
135135
public function getText()
136136
{
137137
return __(
138-
'Your web server is configured incorrectly. As a result, configuration files '
139-
. ' with sensitive information are accessible from the outside. Please contact your hosting provider.'
138+
'Your web server is set up incorrectly and allows unauthorized access to sensitive files. '
139+
. 'Please contact your hosting provider.'
140140
);
141141
}
142142

app/code/Magento/AdminNotification/Test/Unit/Model/System/Message/Media/Synchronization/ErrorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ protected function setUp()
3939

4040
public function testGetText()
4141
{
42-
$messageText = 'One or more media files failed to be synchronized';
42+
$messageText = 'We were unable to synchronize one or more media files.';
4343

4444
$this->assertContains($messageText, (string)$this->_model->getText());
4545
}

app/code/Magento/AdminNotification/Test/Unit/Model/System/Message/SecurityTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function isDisplayedDataProvider()
9090

9191
public function testGetText()
9292
{
93-
$messageStart = 'Your web server is configured incorrectly.';
93+
$messageStart = 'Your web server is set up incorrectly';
9494

9595
$this->assertStringStartsWith($messageStart, (string)$this->_messageModel->getText());
9696
}

app/code/Magento/Authorization/Model/Acl/AclRetriever.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function getAllowedResourcesByUser($userType, $userId)
7676
$role = $this->_getUserRole($userType, $userId);
7777
if (!$role) {
7878
throw new AuthorizationException(
79-
__('The role associated with the specified user cannot be found.')
79+
__('We can\'t find the role for the user you wanted.')
8080
);
8181
}
8282
$allowedResources = $this->getAllowedResourcesByRole($role->getId());
@@ -85,7 +85,10 @@ public function getAllowedResourcesByUser($userType, $userId)
8585
} catch (\Exception $e) {
8686
$this->logger->critical($e);
8787
throw new LocalizedException(
88-
__('Error happened while getting a list of allowed resources. Check exception log for details.')
88+
__(
89+
'Something went wrong while compiling a list of allowed resources. '
90+
. 'You can find out more in the exceptions log.'
91+
)
8992
);
9093
}
9194
return $allowedResources;

app/code/Magento/Authorization/Test/Unit/Model/Acl/AclRetrieverTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function testGetAllowedResourcesByUserTypeCustomer()
5757

5858
/**
5959
* @expectedException \Magento\Framework\Exception\AuthorizationException
60-
* @expectedExceptionMessage The role associated with the specified user cannot be found.
60+
* @expectedExceptionMessage We can't find the role for the user you wanted.
6161
*/
6262
public function testGetAllowedResourcesByUserRoleNotFound()
6363
{

app/code/Magento/Backend/Block/Cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ protected function _construct()
2727
]
2828
);
2929

30-
$message = __('Cache storage may contain additional data. Are you sure that you want flush it?');
30+
$message = __('The cache storage may contain additional data. Are you sure that you want to flush it?');
3131
$this->buttonList->add(
3232
'flush_system',
3333
[

app/code/Magento/Backend/Controller/Adminhtml/System/Account/Save.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function execute()
5757
if ($password !== '') {
5858
$user->sendPasswordResetNotificationEmail();
5959
}
60-
$this->messageManager->addSuccess(__('The account has been saved.'));
60+
$this->messageManager->addSuccess(__('You saved the account.'));
6161
} catch (ValidatorException $e) {
6262
$this->messageManager->addMessages($e->getMessages());
6363
if ($e->getMessage()) {

0 commit comments

Comments
 (0)