[FIX] bug with lang loading (Thanks a lot to Xavier ALT for the patch)

lp bug: https://launchpad.net/bugs/303929 fixed

bzr revid: christophe@cobalt-20081222111826-y2ud59tzq5ols8b7
This commit is contained in:
Christophe Simonis
2008-12-22 12:18:26 +01:00
parent 66ea8170e0
commit 806582f0b5
+1 -1
View File
@@ -459,7 +459,7 @@ class module(osv.osv):
continue
for lang in filter_lang:
f = os.path.join(tools.config['addons_path'], mod.name, 'i18n', lang + '.po')
f = os.path.join(addons.get_module_path(mod.name), '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)