[FIX] Fixed translation string generation when parsing source files.
bzr revid: jth@openerp.com-20100812182412-r64bujtwge7wwz2t
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user