diff options
| author | Christophe Simonis <christophe@cobalt> | 2008-12-22 12:18:26 +0100 |
|---|---|---|
| committer | Christophe Simonis <christophe@cobalt> | 2008-12-22 12:18:26 +0100 |
| commit | 806582f0b59e1586d74ff1f0b86c3938afed2734 (patch) | |
| tree | 4c18c678da4101f32c0a5ed80ff6d7a4efad4d47 /bin/addons/base/module/module.py | |
| parent | 66ea8170e0709d3b318285b07096c31cc9327563 (diff) | |
[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
Diffstat (limited to 'bin/addons/base/module/module.py')
| -rw-r--r-- | bin/addons/base/module/module.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/addons/base/module/module.py b/bin/addons/base/module/module.py index e680eff0451..3b8eff49b9b 100644 --- a/bin/addons/base/module/module.py +++ b/bin/addons/base/module/module.py @@ -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) |
