Skip to content

Regression: localization of 'Anchor not found' message removed.Β #12559

@jayaddison

Description

@jayaddison

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/A

Additional context

Noticed during work on #12197.

Edit: fill in the 'additional context' section.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions