sphinx-contrib / images

sphinxcontrib-images extension
Apache License 2.0
17 stars 14 forks source link

No translation of title and alt #13

Closed kujiu closed 4 years ago

kujiu commented 4 years ago

Translation of text in image attributes miss.

How to reproduce

Create a project with sphinx-quickstart, add an image on index.rst and set a :title: and an :alt:.

Then, launch compilation with "make gettext". The content of :title: and of :alt: are not in the index.pot file.

jonascj commented 4 years ago

Does it work as intended without sphinxcontrib-images loaded? I assume it does, if you add your image to index.rst as below:

.. image:: fig.png
   :alt: my alternate text
   :title: my title
kujiu commented 4 years ago

No, it doesn't. I opened the same issue here : https://github.com/sphinx-doc/sphinx/issues/7784

jonascj commented 4 years ago

Then I'll close it as an upstream issue. Feel free to open a new issue if it gets fixed upstream but appears again when using sphinxcontrib-images.