[7.0] Translation synchronize terms ignore translations from code

Bug #1125264 reported by Yves Hoyos
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
New
Undecided
OpenERP Publisher's Warranty Team

Bug Description

Hi,

I just write a new module, and I tried to translate it, but some terms were missing.
So I use the "Synchronize terms" and "Export translation" to generate new PO files, but they were still missing.
I looked in the translated terms (in the database), but the were not there.

The missing terms went from Python code (with tools.translate_("text") function).
Maybe it's because I have my personnal modules in an external folder, linked to OpenERP by setting the addons_path in the config file.

So, I had to manually edit the PO file and add the location of the source code in the comment. Then I update my module and now it's ok.

Could'd you please check the synchronize function to find terms from python code in a different folder that addons?

Thanks

Tags: maintenance
Revision history for this message
Quentin THEURET @Amaris (qtheuret) wrote :

Maybe this bug is a duplicate of #1166776

Changed in openobject-server:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
tags: added: maintenance
Revision history for this message
Yajo (yajo) wrote :

I think this is not a duplicate.

I put an example module: phonecall_suggest_salesman.

Now clone the repo, update to revision 59, install the module, and export the translation. You will notice that string at line 41 of [1] is not translated.

Lines 23 to 27 for Spanish translation [2] had to be added manually, and had no effect on the GUI, even when they were installed to the database.

[1]http://bazaar.launchpad.net/~grupoesoc/openerp-grupoesoc-addons/7.0/view/59/phonecall_suggest_salesman/phonecall_suggest_salesman.py?start_revid=59#L41

[2] http://bazaar.launchpad.net/~grupoesoc/openerp-grupoesoc-addons/7.0/view/59/phonecall_suggest_salesman/i18n/es.po?start_revid=59#L23

Revision history for this message
Yajo (yajo) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.