[FIX] Fixed translation string generation when parsing source files.

bzr revid: jth@openerp.com-20100812182412-r64bujtwge7wwz2t
This commit is contained in:
Julien Thewys
2010-08-12 20:24:12 +02:00
parent dda1429bfc
commit 34be1742ad
+1 -1
View File
@@ -642,7 +642,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(fabsolutepath)
module = get_module_from_path(frelativepath)
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()