Hi, I also recently encountered this problem, yesterday. I think it's caused by this feature introduced in 4.0:
- #7784: i18n: The alt text for image is translated by default (without gettext_additional_targets <https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-gettext_additional_targets> setting) I guess that an image without any 'alt text' uses the substitution reference. Which then ends up in the .po files As a workaround, I have added an empty ':alt:' option to each image directive in the rst file. It's some work, but I found the strings are not longer present in the po/pot files. Example .. |grid-manual-actions-action-trigger| image:: some_image.png :alt: One could debate if the current behavior is a defect (from my point of view, I'd say that On Friday, December 3, 2021 at 10:59:09 AM UTC+1 Matt from Documatt wrote: > Hi friends, > I've just updated from Sphinx 3.5.3 to 4.1.0. Now, "make gettext" extracts > all substitution names. I can't find any details at > https://www.sphinx-doc.org/en/master/changes.html. > > For example, in RST: > > .. |grid-manual-actions-action-trigger| image:: > img/portlets/grid-manual-actions-action-trigger.nol10n.png > > and in POT: > > msgid "grid-manual-actions-action-trigger" > mststr "" > > I'm sure that substitutions were not picked up MessageCatalogBuilder... > > Is this behavior configurable and documented? > > Thanks > > Matt > https://techwriter.documatt.com > > > -- You received this message because you are subscribed to the Google Groups "sphinx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to sphinx-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/8d33e94d-96f7-4343-a800-1603a634bdfcn%40googlegroups.com.