fix comment and write some stuff a bit clearer

This commit is contained in:
Nikos Kouremenos 2006-02-24 21:05:05 +00:00
parent 66b149ac50
commit 850ec25a0b
1 changed files with 3 additions and 4 deletions

View File

@ -37,11 +37,10 @@ else:
# according to the environment variables
locale.setlocale(locale.LC_ALL, '')
## For win: set, if needed, a value in LANG environmental variable ##
## For windows: set, if needed, a value in LANG environmental variable ##
if os.name == 'nt':
# get LANG, fallback to ''
lang = os.environ.get('LANG')
if not lang:
lang = os.getenv('LANG')
if lang is None:
default_lang = locale.getdefaultlocale()[0] # en_US, fr_FR, el_GR etc..
if default_lang:
lang = default_lang