Odoo Help

0

Translations do not appear due to missing server code

By
Michael Goetz-Schneider
on 9/23/14, 6:45 AM 794 views

Hi everyone,

we merged latest translations from launchpad, but some does not work. We saw changes like this

#: view:mrp.routing.workcenter:0

#: view:mrp.routing.workcenter:mrp.mrp_routing_workcenter_form_view

and suppose that we miss some new server functionality concerning translations. We still use v7.0, we will switch to 8.0 later. Do someone has the same problem and can help us to find the new server change sets in the github ?

thanks Michael GSchneider

0

we found this in the github and could solve the problem:

[FIX] tools.translate: when loading entries from a PO file, use also the POT.

On Launchpad, as commented on bug 933496, PO entries (and their comments) are
shared between series. This mean that e.g. the 7.0 series can have the wrong
`reference` comments (those beginning with #:) as they would be copied from say
the trunk series. Those `reference` comments are used to import translations
and look them up.

This patch adds a few lines of code to tools.translate so that targets
defined in the POT `reference` comments are used in addition to those from the
PO file.

Also adds a test module to validate the new behavior.

This patch stems from:
 - the 6.1 branch by Vo Minh Thu:
    https://code.launchpad.net/+branch/~openerp-dev/openobject-server/6.1-fix-po-targets-933496-vmt
 - the 7.0 port by Numerigraphe:
    https://code.launchpad.net/~numerigraphe-team/openobject-server/7.0-fix-po-targets-933496-vmt

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 9/23/14, 6:45 AM
Seen: 794 times
Last updated: 3/16/15, 8:10 AM