diff --git a/pym/cl_fill.py b/pym/cl_fill.py index ac1c1c6..900e8cb 100644 --- a/pym/cl_fill.py +++ b/pym/cl_fill.py @@ -326,12 +326,12 @@ class fillVars(varsShare): localeVal = self.getValueFromCmdLine("calculate",0) if locale.isLangExists(localeVal): return locale.getFieldByLang('locale',localeVal) - elif os.environ.has_key("LANG"): - return os.environ["LANG"] else: localeVal = self.getValueFromConfig('/etc/env.d/02locale','LANG') if locale.isValueInFieldExists('locale',localeVal): return localeVal + if os.environ.has_key("LANG"): + return os.environ["LANG"] return locale.getFieldByLang("locale","default") def get_os_locale_lang(self):