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

WIP: Add script to automatically translate rst docs into any language #9

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

muscache
Copy link
Contributor

This PR introduces tools/translate_docs.py. Run it with a source and destination language and it'll automatically pick up files and translate them through Google Translate.

This script is not stable.

  • I haven't figured out how to edit the text in rst nodes. Documentation makes it seem impossible. Until we figure out how to actually substitute the translated text, this script won't be useful
  • Integration with sphinx through plugins would be nice to use their .po files approach
  • The code lacks tests and is messy
  • This approach currently only translates one file at a time, Google can block us for abuse
  • No diffing functionality, even unchanged docs will be translated again

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

Successfully merging this pull request may close these issues.

None yet

1 participant