summaryrefslogtreecommitdiff
path: root/addons/project_long_term/project_long_term_view.xml
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2012-02-02 15:32:10 +0100
committerOlivier Dony <odo@openerp.com>2012-02-02 15:32:10 +0100
commitaea1b134121859eb2d04b435d471142583b6f64a (patch)
tree52f8a3ba7456eee94b50498b1805ff9831892040 /addons/project_long_term/project_long_term_view.xml
parent96e0a5dc1604830d6875d1a8c7e738e3caa22bd7 (diff)
[IMP] tools.translate: be more lenient and accept standart gettext source annotations
The GetText spec says that PO auto-comments indicating the source location have this form: #: /path/to/file:lineno However OpenERP's POT export system defaults to a modified version of this format with an extra 'type' field: #: type:/path/to/file:lineno The babel extractors we use for openerp-web's translations have the GetText format hardcoded, so it's a good idea to be more lenient and allow the standards annotations too. We can use a default 'code' type for such cases. For openerp-web translations the type does not matter, as the translations will be directly loaded by the web engine from the PO files and served in Javascript to the browser, with no typing needed. This patch simply avoids failing to parse updated PO files that will contain standard GetText annotations for the openerp-web related terms. bzr revid: odo@openerp.com-20120202143210-05p1w24t6u77cyv8
Diffstat (limited to 'addons/project_long_term/project_long_term_view.xml')
0 files changed, 0 insertions, 0 deletions