Skip to content

Commit 19f3a9e

Browse files
author
Oleksii Korshenko
authored
MAGETWO-83562: update button.phtml overcomplicated translation phrase. Magento 2.3 #12155
2 parents 2321610 + 6aad51f commit 19f3a9e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/code/Magento/Checkout/i18n/en_US.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Checkout,Checkout
6262
Error!,Error!
6363
"DB exception","DB exception"
6464
Message,Message
65-
"<a href=""%1"" onclick=""this.target='_blank'"" class=""print"">Print receipt</a>","<a href=""%1"" onclick=""this.target='_blank'"" class=""print"">Print receipt</a>"
65+
"Print receipt","Print receipt"
6666
"Apply Discount Code","Apply Discount Code"
6767
"Enter discount code","Enter discount code"
6868
"Apply Discount","Apply Discount"

app/code/Magento/Checkout/view/frontend/templates/button.phtml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
<?php /** @var $block \Magento\Checkout\Block\Onepage\Success */ ?>
1111

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

0 commit comments

Comments
 (0)