In odoo 15 I have created a custom layout template for an invoice report (PDF). This template contains some texts in German language. Where do I have to specify any translation of these texts so they are considered if the invoice is printed in e.g. English?
Asked
Active
Viewed 173 times
1 Answers
0
Activate debug mode.
You can find it in settings > translations > Transleted terms, and you search for your germans terms for translate them one by one.
You can set your template manually, settings > Technical > Email templates and now you can edit the template. But this is a non-dynamic solution.
More dynamic way :
- Use .po,.pot files in your custom modules. if you have computed strings in your template use the function "_" before. Ex :
my_str = _("Hello, how are you")
afterwards, edit the '.po' file
Look at the documentation here: https://www.odoo.com/documentation/16.0/developer/howtos/translations.html
Regards,

Alexis Yovanofski
- 54
- 5