Hello !
I would like to translate some sentences inside my python code (for example, sentences displayed when a UserError occurs).
I use the get-text like method : _() to be able to translate those terms.
When I export a .po file for a specific language (or a new one), I find the sentences I want to translate but when I add a translation and import it, those translations do not seem to be taken into account by odoo.
So I checked inside the odoo code and it seems that "code" lines are not taken into account by odoo when odoo process the imported po file :
So my question is the following : How do you manage to translate those sentences inside your python code ?
Thank you in advance.