0

There are some email templates that use variable %changes and I'm not able to translate the text (password) it outputs. How do I translate it? I have tried CSV file with no luck.

Here is an example from the email template:

{{trans "New %changes for %user_name" changes=$changes user_name=$user.name}}
0

you can try below way..

i have translated in German langugae

"New %changes for %user_name","Nieuwe %changes voor %user_name"
  • It's not working for me. I'm in developer mode so do I need to manually delete some caches or other generated files in some folders in order for the translation to work? – Webninja Aug 10 at 16:50
  • @Webninja you can search this word in your file you have not two time wriiten – Rakesh Donga Aug 11 at 4:28
  • The problem I have is that other parts of that sentence are translated, but the word that goes in place of %changes is not being translated. How do I translate that? For example in my tests this word is: password. – Webninja Aug 12 at 11:31
0

Another option would be to use the transactional email section of the admin to load the email template into the database. You can then do a database level store based translation. Even make content changes of you like.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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