diff options
| author | Fabien Pinckaers <fp@tinyerp.com> | 2010-12-29 19:58:33 +0100 |
|---|---|---|
| committer | Fabien Pinckaers <fp@tinyerp.com> | 2010-12-29 19:58:33 +0100 |
| commit | 840e76b9ace851c3f12f031c486cbb1827e75d2e (patch) | |
| tree | dfe77e598ad9670d37d3106f0d636e37a134a45d /bin/addons/__init__.py | |
| parent | 303c769a53ee548c1deb9d30577fd3b7075d19b7 (diff) | |
| parent | 6f930404ed0d67116a30161a5827f61d57f7833b (diff) | |
merge
bzr revid: fp@tinyerp.com-20101229185833-ujdxwg5zyg2i3zf2
Diffstat (limited to 'bin/addons/__init__.py')
| -rw-r--r-- | bin/addons/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/addons/__init__.py b/bin/addons/__init__.py index 29f81f97928..6e5bd3b567b 100644 --- a/bin/addons/__init__.py +++ b/bin/addons/__init__.py @@ -827,6 +827,10 @@ def load_modules(db, force_demo=False, status=None, update_module=False): raise osv.osv.except_osv(_('Could not load base module'), _('module base cannot be loaded! (hint: verify addons-path)')) has_updates = load_module_graph(cr, graph, status, perform_checks=(not update_module), report=report, skip_cleanup=True) + if tools.config['load_language']: + for lang in tools.config['load_language'].split(','): + tools.load_language(cr, lang) + if update_module: modobj = pool.get('ir.module.module') logger.notifyChannel('init', netsvc.LOG_INFO, 'updating modules list') |
