From 02cb96454e728a08cf2a94e8ec7133d7bd210851 Mon Sep 17 00:00:00 2001 From: Naresh Choksy Date: Tue, 14 Jul 2009 18:08:09 +0530 Subject: [PATCH] [IMP]:OS Locale for environment Info bzr revid: nch@tinyerp.com-20090714123809-t8i4d3akkcjlu76q --- bin/service/web_services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/service/web_services.py b/bin/service/web_services.py index 399a62b14e4..3543cb78d95 100644 --- a/bin/service/web_services.py +++ b/bin/service/web_services.py @@ -532,7 +532,7 @@ GNU Public Licence. except Exception,e: rev_id = 'Exception: %s\n' % (str(e)) - os_lang = os.environ.get('LANG', '').split('.')[0] + os_lang = '.'.join(locale.getdefaultlocale()) environment = '\nEnvironment Information : \n' \ 'PlatForm : %s\n' \ 'Operating System : %s\n' \