I created a module called phil/pdfs to customize the pdf of magento_sales module. Everything works fine but the translation. Collecting the phrases with i18n tool returns all phrases I want to translate. I put the csv file to


without success. If I change the cvs file to en_US the translation works fine. It seems the pdf is generated by the language active in backend. How can I change the translation to language active in storeview?

Somebody knows a solution for this problem?

1 Answer 1


Try adding adding your translation strings to your theme file :


Like this :

"Grand Total","Big Total"

Note : be careful with spaces at the end of some translations

Your Answer

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

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