Skip to content

Commit f325cd6

Browse files
author
Oleksii Korshenko
authored
MAGETWO-83475: update button.phtml overcomplicated translation phrase. #12106
2 parents a9bd076 + 810a346 commit f325cd6

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 @@ Error!,Error!
6262
"DB exception","DB exception"
6363
"Wrong minimum amount.","Wrong minimum amount."
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-
<?php /* @escapeNotVerified */ echo __('<a href="%1" onclick="this.target=\'_blank\'" class="print">Print receipt</a>', $block->getPrintUrl()) ?>
13+
<a href="<?php /* @escapeNotVerified */ echo $block->getPrintUrl() ?>" target="_blank" class="print">
14+
<?php /* @escapeNotVerified */ echo __('Print receipt') ?>
15+
</a>
1416
<?php echo $block->getChildHtml() ?>
1517
<?php endif;?>

0 commit comments

Comments
 (0)