Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make the translation take effect? #3068

Closed
3 tasks done
wei-hai opened this issue Jun 30, 2017 · 3 comments
Closed
3 tasks done

How to make the translation take effect? #3068

wei-hai opened this issue Jun 30, 2017 · 3 comments

Comments

@wei-hai
Copy link

wei-hai commented Jun 30, 2017

Make sure these boxes are checked before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if any
  • I have reproduced the issue with at least the latest released version of superset
  • I have checked the issue tracker for the same issue and I haven't found one similar

Superset version

0.18.5

I checked the messages.po file under translations/zh/LC_MESSAGES and I found that there are more translated strings than what I see in the latest release, so how to make the translation in messages.po or messages.mo files take effect when I build and run the server?

@akfdgg
Copy link

akfdgg commented Jul 3, 2017

1、download the .mo .po file and remove it under the superset dir.

2、under the superset dir:mkdir -p translations/zh/LC_MESSAGES.

3、Finally I run $ "pybabel compile -d translations". This generate the /tranlations/zh_CN/LC_MESSAGES/messages.mo successfully.

4、run "superset runserver".

have a try!
thank you.

@wei-hai
Copy link
Author

wei-hai commented Jul 3, 2017

@akfdgg Can you be more specific? Why do you remove the .mo and .po files at step 1 and re-generate them at step 3?

@wei-hai wei-hai closed this as completed Jul 26, 2017
@karkhaneei
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants