-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Description
Describe the bug
During #11432 the following exception string was rewritten to use an f-string:
- raise Exception(__("Anchor '%s' not found") % anchor)
+ raise Exception(__(f'Anchor {anchor!r} not found'))This interpolates the name of the anchor into the text before the __(...) (localization) method is called.
Subsequently when we updated the message catalogs in #11538 , localization of msgid "Anchor '%s' not found" was dropped from the localization resources.
How to Reproduce
N/A
Environment Information
N/A
Sphinx extensions
N/AAdditional context
Noticed during work on #12197.
Edit: fill in the 'additional context' section.
AA-Turner