Comment 1 for bug 1083142

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

In this case it comes from HTML content with nested tags[1] inside view definitions, and is a consequence of the way we extract the terms to translate and how we restore them. Not sure how to improve it without making the code overly complex and brittle.
We could try to avoid splitting the terms on some of the HTML elements that are not meant to end a sentence, but even a simple <span> could be either part of a sentence or meant to start something else.

As a mitigating factor there should not be too many cases where text is used directly in the view definitions (I hope), and the context displayed on Launchpad as a translator comment gives you a hint as to which view contains it. So the translators could have a look at the actual view, if they have some technical skills (or e.g. by testing the view on runbot)

[1] http://bazaar.launchpad.net/~openerp/openobject-addons/trunk/view/8124/purchase/purchase_view.xml#L604