[FIX] unsupported locale settings...
bzr revid: apa@tinyerp.com-20090122133705-o0hq401l21uau12e
This commit is contained in:
parent
7b26658101
commit
c677abdf3e
|
@ -540,7 +540,6 @@ def trans_load_data(db_name, fileobj, fileformat, lang, strict=False, lang_name=
|
|||
else:
|
||||
locale.setlocale(locale.LC_ALL, str(lang + '.' + encoding))
|
||||
except Exception:
|
||||
locale.setlocale(locale.LC_ALL, str('en_US' + '.' + encoding))
|
||||
netsvc.Logger().notifyChannel(' ', netsvc.LOG_WARNING,
|
||||
'unable to set locale "%s"' % (lang))
|
||||
|
||||
|
|
Loading…
Reference in New Issue