summaryrefslogtreecommitdiff
path: root/bin/addons/base/module
diff options
context:
space:
mode:
authorOlivier Laurent <olt@tinyerp.com>2009-01-15 17:33:25 +0100
committerOlivier Laurent <olt@tinyerp.com>2009-01-15 17:33:25 +0100
commitf4eedf53bbf75e25bf0bbcf4bb3f773b2aaca99d (patch)
treed79b9617a1bcc62a6e188d7e1db4744b48a53298 /bin/addons/base/module
parent29f3a32c9bdc74af94a9e817b1c13bd9f91cf3b7 (diff)
parent863785242d6d01fbccdd943666b10596792a5513 (diff)
merge
bzr revid: olt@tinyerp.com-20090115163325-9rxxi81k98qhm0ry
Diffstat (limited to 'bin/addons/base/module')
-rw-r--r--bin/addons/base/module/module.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/addons/base/module/module.py b/bin/addons/base/module/module.py
index 35c1e9f48ca..a4f822a5e16 100644
--- a/bin/addons/base/module/module.py
+++ b/bin/addons/base/module/module.py
@@ -462,9 +462,12 @@ class module(osv.osv):
for mod in self.browse(cr, uid, ids):
if mod.state != 'installed':
continue
-
+ modpath = addons.get_module_path(mod.name)
+ if not modpath:
+ # unable to find the module. we skip
+ continue
for lang in filter_lang:
- f = os.path.join(addons.get_module_path(mod.name), 'i18n', lang + '.po')
+ f = os.path.join(modpath, 'i18n', lang + '.po')
if os.path.exists(f):
logger.notifyChannel("init", netsvc.LOG_INFO, 'module %s: loading translation file for language %s' % (mod.name, lang))
tools.trans_load(cr.dbname, f, lang, verbose=False)