use a default LANG value

This commit is contained in:
Yann Leboulanger 2005-06-25 07:37:14 +00:00
parent 958beaa486
commit eeafdd4e92
1 changed files with 5 additions and 1 deletions

View File

@ -35,4 +35,8 @@ log.addHandler(h)
logger = common.logger.Logger() logger = common.logger.Logger()
DATA_DIR = '../data' DATA_DIR = '../data'
LANG = os.getenv('LANG')[:2] # en, fr, el etc.. LANG = os.getenv('LANG') # en, fr, el etc..
if LANG:
LANG = LANG[:3]
else:
LANG = 'en'