From 5fb02b1607a866ea8ba1b9a0d324b26cbfecb9cf Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Fri, 30 Jan 2009 00:20:17 +0100 Subject: [FIX] avoid a crash when resetting the local with python 2.4 (lp:322432) [IMP] do not rewrite locale information every time [IMP] all message about translations are logger into the 'i18n' logger [FIX] the code and the name of the languages must be unique lp bug: https://launchpad.net/bugs/322432 fixed bzr revid: christophe@taupe-20090129232017-7lvamen2b3s1waxp --- bin/addons/base/module/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/addons/base/module/module.py') diff --git a/bin/addons/base/module/module.py b/bin/addons/base/module/module.py index 9eb5e46e575..8176565a871 100644 --- a/bin/addons/base/module/module.py +++ b/bin/addons/base/module/module.py @@ -469,7 +469,7 @@ class module(osv.osv): for lang in filter_lang: 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)) + logger.notifyChannel("i18n", netsvc.LOG_INFO, 'module %s: loading translation file for language %s' % (mod.name, lang)) tools.trans_load(cr.dbname, f, lang, verbose=False) -- cgit v1.2.3