Skip to content

Commit 3e08730

Browse files
authored
update button.phtml
It has overcomplicated translation phrase. "<a href=""%1"" onclick=""this.target=\'_blank\'"" class=""print"">Print receipt</a>" vs "Print receipt"
1 parent 2324274 commit 3e08730

File tree

1 file changed

+3
-1
lines changed
  • app/code/Magento/Checkout/view/frontend/templates

1 file changed

+3
-1
lines changed

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)