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

Add translation progress information #11509

Merged
merged 9 commits into from Jul 24, 2023

Conversation

AA-Turner
Copy link
Member

Closes #11508; ref #1246

This PR integrates translation progress information into the core of Sphinx, with a new substitution (|translation progress|) and the ability to enable element-level classes (translated and unstranslated) via a new configuration variable, translation_progress_classes.

A

humitos and others added 4 commits July 24, 2023 16:46
Minimal explanation with a full extension example about how the
`translated=True` attribute injected by `sphinx.transforms.i18n.Locale` can be
used to extend Sphinx's functionality.

Related sphinx-doc#1246
@AA-Turner AA-Turner merged commit 066e0fa into sphinx-doc:master Jul 24, 2023
30 checks passed
Comment on lines +357 to +358
The ``|translation progress|`` substitution can be used to display the
percentage of nodes that have been translated on a per-document basis.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yesterday, I was about to suggest having two different substitutions here but I didn't have time.

  • |translation total progress|
  • |translation page progress|

That way you can show these two numbers.

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

Successfully merging this pull request may close these issues.

None yet

2 participants