Let default language at startup for issue464

This commit is contained in:
Cédric Krier committed 2008-10-29 14:04:27 +01:00
1 parent da7660eaa9
commit f0fdaf6a24
1 file changed
-8
-8
View File
@@ -179,14 +179,6 @@ def setlang(lang=None, locale_dict=None):
except:
logging.getLogger('translate').info(
_('Unable to set locale %s') % lang2 + '.' + encoding)
else:
try:
if os.name == 'nt':
os.environ['LANG'] = ''
locale.setlocale(locale.LC_ALL, '')
except:
logging.getLogger('translate').warn(
_('Unable to unset locale'))
if os.path.isdir(locale_dir):
gettext.bindtextdomain(PACKAGE, locale_dir)