From 4aa00ae64b64cf5401547aa55bdb13c18e1d18b5 Mon Sep 17 00:00:00 2001 From: "ame (Tiny/Axelor)" <ame@tinyerp.com> Date: Wed, 11 Feb 2009 16:31:45 +0530 Subject: [PATCH] [FIX] create db with non-english locale with web client (unicode problem). lp bug: https://launchpad.net/bugs/326138 fixed bzr revid: ame@tinyerp.com-20090211110145-54l9jno1a6yp3sd6 --- bin/tools/translate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/tools/translate.py b/bin/tools/translate.py index e8ff793fa4aa..bae9b68a8822 100644 --- a/bin/tools/translate.py +++ b/bin/tools/translate.py @@ -527,7 +527,7 @@ def trans_load_data(db_name, fileobj, fileformat, lang, strict=False, lang_name= fail = True for ln in get_locales(lang): try: - locale.setlocale(locale.LC_ALL, ln) + locale.setlocale(locale.LC_ALL, str(ln)) fail = False break except locale.Error: -- GitLab