[6.1/7.0/trunk] Translation exported is not complete
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Invalid
|
Undecided
|
OpenERP's Framework R&D | ||
OpenERP Community Backports (Server) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
This has been detected from bug lp:933496, where a missing translation has triggered an investigation about that.
In purchase module, you have this menu definition:
<menuitem icon="terp-
Exporting pot file, I get:
#. module: purchase
#: model:ir.
#: model:ir.
#: model:ir.
#: model:ir.
#: view:res.partner:0
msgid "Purchases"
msgstr ""
But it must be another one comment that is missing:
#: model:ir.
Maybe the problem is because XML ID module is 'base' instead 'purchase', but if I export 'base' module, this comment isn't exported also.
Changed in ocb-server: | |
status: | New → Invalid |
It's not a bug, it's because the "Purchases" menu is shared by multiple module without any common ancestor except `base`, so it is located in `base`. As a result the proper location for this translation is in base.pot, and that's where it is, for example see: bazaar. launchpad. net/~openerp/ openobject- server/ 7.0/view/ 5263/openerp/ addons/ base/i18n/ base.pot# L1436
http://
It is not an ideal situation because it requires you to have Purchase installed if you want to perform a manual export of base.pot that properly includes it, but it works. We always perform the export of the official translation templates on a system where all official modules are installed.
It can sometimes cause a translation to be missing in the UI depending on the order in which you installed the extra languages and modules. In that case you can fix it by updating base again.
We've tried a few different things to avoid this situation but nothing works well without having annoying consequences on other features. The simplest way to avoid it might be to never share a menuitem between several modules, using an alternative menu layout.
I would close this bug as Invalid for now, but it's not actually in the openerp-server project anyway, so it's up to you.