Skip to content

Commit 463c715

Browse files
author
Momotenko,Natalia(nmomotenko)
committed
Merge pull request #343 from magento-webdev/PR
[UI] Sprint 38 + Bugfixes
2 parents 86674b4 + 7411e99 commit 463c715

File tree

212 files changed

+1059
-674
lines changed

Some content is hidden

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

212 files changed

+1059
-674
lines changed

Gruntfile.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,17 @@ module.exports = function (grunt) {
6868
'less:luma',
6969
'less:backend'
7070
],
71+
7172
/**
7273
* Documentation
7374
*/
7475
documentation: [
76+
'replace:documentation',
7577
'less:documentation',
7678
'styledocco:documentation',
79+
'usebanner:documentationCss',
80+
'usebanner:documentationLess',
81+
'usebanner:documentationHtml',
7782
'clean:var',
7883
'clean:pub'
7984
],
@@ -82,12 +87,6 @@ module.exports = function (grunt) {
8287
'mage-minify:legacy'
8388
],
8489

85-
'documentation-banners': [
86-
'usebanner:documentationCss',
87-
'usebanner:documentationLess',
88-
'usebanner:documentationHtml'
89-
],
90-
9190
spec: function (theme) {
9291
var runner = require('./dev/tests/js/jasmine/spec_runner');
9392

app/code/Magento/Backend/Controller/Adminhtml/Index/GlobalSearch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function execute()
4848
$items[] = [
4949
'id' => 'error',
5050
'type' => __('Error'),
51-
'name' => __('Access Denied'),
51+
'name' => __('Access Denied.'),
5252
'description' => __('You need more permissions to do this.'),
5353
];
5454
} else {

app/code/Magento/Backend/view/adminhtml/templates/admin/access_denied.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
<h1 class="page-heading"><?php echo __('Access denied') ?></h1>
1616
<?php if (!$block->hasAvailableResources()): ?>
1717
<p>
18-
<?php echo __('Please try to log out and sign in again.') ?><br/>
18+
<?php echo __('Please try to sign out and sign in again.') ?><br/>
1919
<?php echo __('If you continue to receive this message, please contact the store owner.') ?>
2020
</p>
2121
<?php else: ?>
22-
<p><?php echo __('Access denied.') ?></p>
22+
<p><?php echo __('You need more permissions to access this.') ?></p>
2323
<?php endif?>

app/code/Magento/Backend/view/adminhtml/templates/media/uploader.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ require([
7373
$('#' + data.fileId)
7474
.delay(2000)
7575
.hide('highlight');
76-
alert($.mage.__('File extension not known or unsupported type.'));
76+
alert($.mage.__('We don\'t recognize or support this file extension type.'));
7777
}
7878
$('#' + data.fileId).remove();
7979
},

app/code/Magento/Backend/view/adminhtml/templates/menu.phtml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
?>
1010

11-
1211
<nav data-mage-init='{"globalNavigation": {}}' class="admin__menu" role="navigation">
1312
<?php echo $block->renderNavigation($block->getMenuModel(), 0, 12); ?>
1413
</nav>

app/code/Magento/Bundle/Model/Product/Type.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1319,7 +1319,7 @@ protected function checkIsResult($_result)
13191319

13201320
if (!isset($_result[0])) {
13211321
throw new \Magento\Framework\Exception\LocalizedException(
1322-
__('We cannot add this item to your shopping cart.')
1322+
__('We can\'t add this item to your cart right now.')
13231323
);
13241324
}
13251325
}

app/code/Magento/Bundle/Test/Unit/Model/Product/TypeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ function ($key) use ($optionCollection, $selectionCollection) {
695695
->willReturn(3.14);
696696

697697
$result = $this->model->prepareForCartAdvanced($buyRequest, $product);
698-
$this->assertEquals('We cannot add this item to your shopping cart.', $result);
698+
$this->assertEquals('We can\'t add this item to your cart right now.', $result);
699699
}
700700

701701
/**

app/code/Magento/Catalog/Block/Adminhtml/Product/Attribute/Edit/Tab/Advanced.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ protected function _prepareForm()
8585
'label' => __('Attribute Code'),
8686
'title' => __('Attribute Code'),
8787
'note' => __(
88-
'For internal use. Must be unique with no spaces. Maximum length of attribute code must be less than %1 symbols',
88+
'This is used internally. Make sure you don\'t use spaces or more than %1 symbols.',
8989
\Magento\Eav\Model\Entity\Attribute::ATTRIBUTE_CODE_MAX_LENGTH
9090
),
9191
'class' => $validateClass

app/code/Magento/Catalog/Block/Product/View/Options/Type/Select.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,16 @@ public function getValuesHtml()
8989
$type = 'radio';
9090
$class = 'radio admin__control-radio';
9191
if (!$_option->getIsRequire()) {
92-
$selectHtml .= '<div class="field admin__field choice"><input type="radio" id="options_' .
92+
$selectHtml .= '<div class="field choice admin__field admin__field-option">' .
93+
'<input type="radio" id="options_' .
9394
$_option->getId() .
9495
'" class="' .
9596
$class .
9697
' product-custom-option" name="options[' .
9798
$_option->getId() .
9899
']"' .
99100
($this->getSkipJsReloadPrice() ? '' : ' onclick="opConfig.reloadPrice()"') .
100-
' value="" checked="checked" /><label class="label" for="options_' .
101+
' value="" checked="checked" /><label class="label admin__field-label" for="options_' .
101102
$_option->getId() .
102103
'"><span>' .
103104
__('None') . '</span></label></div>';
@@ -153,7 +154,7 @@ public function getValuesHtml()
153154
' price="' .
154155
$this->pricingHelper->currencyByStore($_value->getPrice(true), $store, false) .
155156
'" />' .
156-
'<label class="label" for="options_' .
157+
'<label class="label admin__field-label" for="options_' .
157158
$_option->getId() .
158159
'_' .
159160
$count .

app/code/Magento/Catalog/Controller/Adminhtml/Product/Set/Delete.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function execute()
3939
$this->messageManager->addSuccess(__('The attribute set has been removed.'));
4040
$resultRedirect->setPath('catalog/*/');
4141
} catch (\Exception $e) {
42-
$this->messageManager->addError(__('An error occurred while deleting this set.'));
42+
$this->messageManager->addError(__('We can\'t delete this set right now.'));
4343
$resultRedirect->setUrl($this->_redirect->getRedirectUrl($this->getUrl('*')));
4444
}
4545
return $resultRedirect;

0 commit comments

Comments
 (0)