[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user