-
Notifications
You must be signed in to change notification settings - Fork 9.4k
19085-Translation-in-tier-price-phtml-not-working #19094
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
19085-Translation-in-tier-price-phtml-not-working #19094
Conversation
magento#19085:Translation in tier_price.phtml not working
Hi @agorbulin. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A possible workaround for this issue is to use
<?php echo __() ?>
instead but i don't think this is a proper solution for this issue.
Makes sense to me. So, @agorbulin, why JS translation is not working in this case in the first place?
@orlangur
So, there are 2 solutions:
|
@@ -15,9 +15,9 @@ | |||
+ '</span>' | |||
+ '</span>'; %> | |||
<li class="item"> | |||
<%= $t('Buy %1 for %2 each and').replace('%1', item.qty).replace('%2', priceStr) %> | |||
<%= $t('<?= $block->escapeHtml(__('Buy %1 for %2 each and')) ?>').replace('%1', item.qty).replace('%2', priceStr) %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why JS translation $t
is still here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra $t
removed, please check.
Hi @orlangur, thank you for the review. |
770da21
to
39f7462
Compare
39f7462
to
1a006b3
Compare
Hi @agorbulin. Thank you for your contribution. |
#19085:Translation in tier_price.phtml not working
Description (#19085 )
provided fix uses PHP translate instead of not working JS translate
Fixed Issues (if relevant)
Manual testing scenarios (*)
"Buy %1 for %2 each and","Buy %1 for %2 each and"
save,save
Contribution checklist (*)