Skip to content

Commit

Permalink
MAGETWO-83547: update button.phtml overcomplicated translation phrase…
Browse files Browse the repository at this point in the history
…. 2.2 #12136
  • Loading branch information
Oleksii Korshenko authored Nov 10, 2017
2 parents 758ba75 + d79d15b commit a453689
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/code/Magento/Checkout/i18n/en_US.csv
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Checkout,Checkout
Error!,Error!
"DB exception","DB exception"
Message,Message
"<a href=""%1"" onclick=""this.target='_blank'"" class=""print"">Print receipt</a>","<a href=""%1"" onclick=""this.target='_blank'"" class=""print"">Print receipt</a>"
"Print receipt","Print receipt"
"Apply Discount Code","Apply Discount Code"
"Enter discount code","Enter discount code"
"Apply Discount","Apply Discount"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
<?php /** @var $block \Magento\Checkout\Block\Onepage\Success */ ?>

<?php if ($block->getCanViewOrder() && $block->getCanPrintOrder()) :?>
<?= /* @escapeNotVerified */ __('<a href="%1" onclick="this.target=\'_blank\'" class="print">Print receipt</a>', $block->getPrintUrl()) ?>
<a href="<?= /* @escapeNotVerified */ $block->getPrintUrl() ?>" target="_blank" class="print">
<?= /* @escapeNotVerified */ __('Print receipt') ?>
</a>
<?= $block->getChildHtml() ?>
<?php endif;?>

0 comments on commit a453689

Please sign in to comment.