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

i18n: Highlight untranslated paragraphs #1246

Closed
shimizukawa opened this issue Jan 3, 2015 · 6 comments
Closed

i18n: Highlight untranslated paragraphs #1246

shimizukawa opened this issue Jan 3, 2015 · 6 comments
Labels
internals:internationalisation type:enhancement enhance or introduce a new feature type:proposal a feature suggestion

Comments

@shimizukawa
Copy link
Member

I would like to mark paragraphs that are missing translation with an additional css class. Comments in the code (

# XXX add marker to untranslated parts
) suggest that this idea is not new.


@lehmannro
Copy link
Contributor

Idea from @JulienPalard: Not only highlight but also allow jumping directly to the translation instructions/portal.

@humitos
Copy link
Contributor

humitos commented Jul 24, 2023

This will be possible in Sphinx 7.0.1 thanks to #11502. That PR has a link to an example about how to do exactly what the description of this issue mentions (use CSS to highlight untranslated paragraphs). I think we can probably close this issue as well.

@shimizukawa
Copy link
Member Author

Sounds good! Now I will close this ticket. Thanks.

@AA-Turner
Copy link
Member

@humitos could we add that example recipe to the documentation?

A

@humitos
Copy link
Contributor

humitos commented Jul 24, 2023

@AA-Turner yes. Do you have a page in mind where it could be a good place for it?

@AA-Turner
Copy link
Member

doc/usage/advanced/intl.rst?

humitos added a commit to humitos/sphinx that referenced this issue Jul 24, 2023
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
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
internals:internationalisation type:enhancement enhance or introduce a new feature type:proposal a feature suggestion
Projects
None yet
Development

No branches or pull requests

4 participants