You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by er...@apache.org on 2020/04/02 00:00:41 UTC
[incubator-superset] branch master updated: [fix]some translation
not work better (#9428)
This is an automated email from the ASF dual-hosted git repository.
erikrit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/master by this push:
new 621b481 [fix]some translation not work better (#9428)
621b481 is described below
commit 621b4816b39a091dadd0b33af83246ac689b4fa6
Author: venter <ve...@outlook.com>
AuthorDate: Wed Apr 1 19:00:23 2020 -0500
[fix]some translation not work better (#9428)
---
superset/translations/utils.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/superset/translations/utils.py b/superset/translations/utils.py
index 2e50cc7..bfb12bb 100644
--- a/superset/translations/utils.py
+++ b/superset/translations/utils.py
@@ -36,7 +36,7 @@ def get_language_pack(locale):
if not pack:
filename = DIR + "/{}/LC_MESSAGES/messages.json".format(locale)
try:
- with open(filename) as f:
+ with open(filename, encoding="utf8") as f:
pack = json.load(f)
ALL_LANGUAGE_PACKS[locale] = pack
except Exception: # pylint: disable=broad-except