You might need to set the language first if you didn't.
For exemple in invoice_webkit
module in account_invoice.mako
we take the invoice partner language.
%for inv in objects:
<% setLang(inv.partner_id.lang) %>
And then you use the ${_("my text")}
format.
For your translations, I'm not sure OpenERP add automatically those in the database when synchronizing it.
If you make them in a .po
file, it should look like this:
#. module: invoice_webkit
#: report:addons/invoice_webkit/report/account_invoice.mako:129
msgid "PRO-FORMA"
msgstr "PRO-FORMA"
Otherwise, you might have to add them by hand in the translations.
- Source: PRO-FORMA
- Translation Value: PRO-FORMA
- Translated field: addons/invoice_webkit/report/account_invoice.mako
- Language: French
- Type: Report / Template