You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, run sphinx-build -b gettext . _build/gettext from the 'docs/' directory. This tells sphinx to parse your files and automatically find a bunch of strings-to-be-translated and give them a unique msgid.
Next, we tell sphinx to prepare some X (in this case 'de') destination-language '.po' files from our above-generated '.pot' files. sphinx-intl update -p _build/gettext -l de
These language-specific '.po' files are where we actually do the translating.
Build html for language (in this case 'de') make -e SPHINXOPTS="-D language='de'" BUILDDIR="_build/html/de" html
Open issues:
Translation of ipynb files is not trivial, sphinx-intl expects the cells as json.
A possible workaround would be to convert the .ipynb file to .md, rename the .md file (must not have the same name as the .ipynb file) and then run the gettext command.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.