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

label of deprecated-removed directive is not translatable #24

Open
cocoatomo opened this issue Mar 9, 2020 · 1 comment
Open

label of deprecated-removed directive is not translatable #24

cocoatomo opened this issue Mar 9, 2020 · 1 comment

Comments

@cocoatomo
Copy link
Contributor

cocoatomo commented Mar 9, 2020

A label of deprecated-removed directive is translatable when I submitted this PR, but become not translatable now.
Also, impl-detail directive is.

The related .po file: https://github.com/python/python-docs-ja/blob/3.8/sphinx.po#L44

@tk0miya
Copy link

tk0miya commented Mar 15, 2020

So far, custom extensions for python-doc have accessed internal data structure of sphinx.locale module directly. But, it does not work at present because the structure has changed since Sphinx-1.8 release.

I made a patch for using public translation APIs of Sphinx instead to get translated messages. Could you patch this to the extensions please?
https://gist.github.com/e2de1962f073d389251ba13e285b4336

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

No branches or pull requests

2 participants