From 300a794f075eaf39d0976e125e48644913281db5 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Wed, 14 Dec 2011 19:02:00 +0000 Subject: [PATCH] cope better when LANG is not set at all svn: r18598 --- src/TransUtils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/TransUtils.py b/src/TransUtils.py index d90c5a56a..ee67fd48d 100644 --- a/src/TransUtils.py +++ b/src/TransUtils.py @@ -77,7 +77,8 @@ else: try: lang = locale.getdefaultlocale()[0] + '.UTF-8' except TypeError: - pass + print 'Unable to determine your Locale, using English' + lang = 'en.UTF-8' os.environ["LANG"] = lang os.environ["LANGUAGE"] = lang