From d335b4273d807b70ebaf125290e9e05dc42c0298 Mon Sep 17 00:00:00 2001 From: asamoukin Date: Sat, 1 Nov 2008 12:21:01 +0000 Subject: [PATCH] git-svn-id: http://svn.calculate.ru/calculate2/calculate-lib/trunk@343 c91db197-33c1-4113-bf15-f8a5c547ca64 --- pym/cl_fill.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pym/cl_fill.py b/pym/cl_fill.py index afcb9d9..9bcd276 100755 --- a/pym/cl_fill.py +++ b/pym/cl_fill.py @@ -109,8 +109,10 @@ class fillVars(object, cl_base.glob_attr): def get_os_locale_locale(self): """локаль (прим: ru_RU.UTF-8)""" - print os.environ - return "ru_RU.UTF-8" + if os.environ.has_key("LANG"): + return os.environ["LANG"] + else: + return "en_US.UTF-8" def get_os_locale_lang(self): """язык (прим: ru_RU)"""