From 9119fffc19e4d05a859af35d8dd02639b66d40d6 Mon Sep 17 00:00:00 2001 From: rpa-openerp <> Date: Mon, 30 Nov 2009 16:47:34 +0530 Subject: [PATCH] [FIX]: Translaiton: Fixed problem of other files included in export of translation of base module bzr revid: mra@tinyerp.com-20091130111734-2hh985euf8n26omg --- bin/tools/translate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/tools/translate.py b/bin/tools/translate.py index 50f71a22626..83e90325e70 100644 --- a/bin/tools/translate.py +++ b/bin/tools/translate.py @@ -628,7 +628,7 @@ def trans_generate(lang, modules, dbname=None): for fname in fnmatch.filter(files, '*.py'): fabsolutepath = join(root, fname) frelativepath = fabsolutepath[len(path):] - module = get_module_from_path(frelativepath) + module = get_module_from_path(fabsolutepath) is_mod_installed = module in installed_modules if (('all' in modules) or (module in modules)) and is_mod_installed: code_string = tools.file_open(fabsolutepath, subdir='').read()