Hello,
I want to know how can translate correctly my subject emails.
The only way I found was modify template at theme, but with that way I just have one language option...
Thanks
Solved! Go to Solution.
Ok, I found the "problem/solution".
Why the hell aren't you using the translate method at Magento core templates?
Original:
<!--@subject Your {{var store.getFrontendName()}} order confirmation @-->
My Solution:
<!--@subject {{trans "Your %store_name order confirmation" store_name=$store.getFrontendName() }} @-->
That works great!
Ok, I found the "problem/solution".
Why the hell aren't you using the translate method at Magento core templates?
Original:
<!--@subject Your {{var store.getFrontendName()}} order confirmation @-->
My Solution:
<!--@subject {{trans "Your %store_name order confirmation" store_name=$store.getFrontendName() }} @-->
That works great!
I'm kinda running nuts but where the heck is the subject line of order_new, shippment_new etc. email templates?
The string should look like this, right? "Your %1 order confirmation" when its "Your %store_name order confirmation" in the mail template
One last thing, here's a list of all the entries I couldn't find in any .csv files so I added them to my own. These should be all the subject lines for emails: http://pastebin.com/F2Bt61Ur
Hello,
I use magento 2.1.4 and I don't see the above string in the emails.
What I see is tat the strings started with {{trans "string... But how it will managed.
Can someone please explain it?
can someone explain to me how this works
Rob van Westrop