diff --git a/tryton/translate.py b/tryton/translate.py index 334acc4ecd..1883f54671 100644 --- a/tryton/translate.py +++ b/tryton/translate.py @@ -181,8 +181,7 @@ def setlang(lang=None): try: if os.name == 'nt': os.environ['LANG'] = '' - else: - locale.setlocale(locale.LC_ALL, '') + locale.setlocale(locale.LC_ALL, '') except: logging.getLogger('translate').warn( _('Unable to unset locale'))