Community: Framework mailing list archives
Re: Translation code questionby
On 8 Apr 2015, at 13:43, Mohamed M. Hagag <firstname.lastname@example.org> wrote:
Can we make translation more portable between databases by ignoring res_id while exporting/importing CSV translation files ?
I don't know why we need the res_id which is a data related filed as I understand from the code.
Isn't it enough to query ir_translation by src, name and type only ?
If we ignore res_id it will help solving the below behavioral issues:
- many terms not showing because of wrong res_id
- translation export ignores many terms
- translation import also ignores many terms
- lots of duplicated terms with the same src, name, type and module after multiple imports it can be 10x or 20x
And it will be easily to export the ir_translation table from one DB to another and translation will work.
AFAIK, most if not all multi-language systems do not bind the translation to a dynamic record id like res_id .
Finally, I'm working on testing the translation tools and functions of odoo with various cases.