1

I'm trying to translate

{{trans 'If you have questions about your order, you can email us at <a href="mailto:%store_email">%store_email</a>' store_email=$store_email |raw}}.

with this line in the .csv

"If you have questions about your order, you can email us at <a href="mailto:%store_email">%store_email</a>","Für Rückfragen stehen wir Ihnen jederzeit gerne zur Verfügung. Sie erreichen uns per E-Mail unter <a href="mailto:%store_email">%store_email</a>"

But it doesn't work. I have no problem with this one

{{trans "Thank you for your order from %store_name." store_name=$store.getFrontendName()}}
1

1 Answer 1

0

You should use double quotes when a translation string already has or needs quotes (for example: attributes for inline translation html elements) - like this:

"If you have questions about your order, you can email us at <a href=""mailto:%store_email">%store_email</a>"","Für Rückfragen stehen wir Ihnen jederzeit gerne zur Verfügung. Sie erreichen uns per E-Mail unter <a href=""mailto:%store_email"">%store_email</a>""

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.