From b224b40fac486b542dc23dc2d61af80afe8ebc71 Mon Sep 17 00:00:00 2001 From: Stefan Rijnhart Date: Tue, 17 Sep 2013 14:23:12 +0200 Subject: [PATCH] [FIX] Restore compatibility with Babel > 0.9.6 lp bug: https://launchpad.net/bugs/1226576 fixed bzr revid: stefan@therp.nl-20130917122312-r6s7dgzdsfil7xyg --- openerp/tools/translate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/tools/translate.py b/openerp/tools/translate.py index f1efbc17f2d..08cfa362b9e 100644 --- a/openerp/tools/translate.py +++ b/openerp/tools/translate.py @@ -874,7 +874,7 @@ def trans_generate(lang, modules, cr): if module: src_file = open(fabsolutepath, 'r') try: - for lineno, message, comments in extract.extract(extract_method, src_file, + for lineno, message, comments, _context in extract.extract(extract_method, src_file, keywords=extract_keywords): push_translation(module, trans_type, display_path, lineno, encode(message), comments + extra_comments)