-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Change "Permalink to this headline" to use "heading" instead #10041
Comments
FWIW, "Link to this heading" would be a better name IMO -- even though it's a more "drastic" rephrasing. :) |
+1; Reasonable. Could you make a PR, please? Then I'll merge this into the master branch. Note: To keep the message translated, it would be better to change it in the major release. |
I agree. "permalink" has a quite specific meaning which I think cannot be guaranteed by Sphinx. In fact, in many cases (probably the majority of sites out there), the generated link will contain something like |
Happy to! Is there any specific thing that I'd need to do other than modifying the two spots in the codebase that use this string (via |
It's okay to change the strings only. All translations are managed at transifex.com. And strings on our codebase will be synchronized to transifex.com automatically by weekly batch (see https://github.com/sphinx-doc/sphinx/actions/workflows/transifex.yml) |
It ended up being more than two spots, but, hey, this PR has been filed! :) |
This is a good point and I agree that this is not-great! It is, however, a separate and broader concern compared to this issue (intentionally restricted to just "headline") -- so... I've filed #10049, which is where we can discuss replacing the "Permalink" word. :) |
Thanks @tk0miya for the quick response, review and merge! ^.^ |
Describe the bug
Sphinx-generated tooltips for headings use "Headline" instead of "Heading".
Picking out of https://ell.stackexchange.com/questions/196585/headline-vs-heading-vs-header:
How to Reproduce
Build any Sphinx documentation, containing one or more headings (eg: https://pradyunsg.me/furo/kitchen-sink/demo/). When hovering over the Sphinx-injected "headerlink", notice that it says "Headline" instead of "Heading".
Expected behavior
Instead of:
The tooltip should be:
Your project
https://github.com/pradyunsg/furo
Screenshots
OS
N/A
Python version
N/A
Sphinx version
4.x
Sphinx extensions
No response
Extra tools
No response
Additional context
The relevant chunk of code:
sphinx/sphinx/writers/html5.py
Lines 386 to 398 in f38bd8e
This will also need some update to the translated strings, which means that this will likely need to be a Sphinx 5.0+ change?
The text was updated successfully, but these errors were encountered: