Skip to content

Add translation progress information#11509

Merged
AA-Turner merged 9 commits intosphinx-doc:masterfrom
AA-Turner:translation-progress
Jul 24, 2023
Merged

Add translation progress information#11509
AA-Turner merged 9 commits intosphinx-doc:masterfrom
AA-Turner:translation-progress

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
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.

2 participants