You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using separate the link and the target definition, the localization works only for a first link in a string, but not for the second one (with same text).
How to Reproduce
index.rst with donate page link included twice in a single block:
You can boost Weblate’s development on the `donate page`_. Funds collected
there are used to enable gratis hosting for libre software projects and further
development of Weblate.
Please check the `donate page`_ for options, such
as funding goals and the rewards you get as a proud funder.
.. _donate page: https://weblate.org/donate/
PO file with a translation:
#:../index.rst:13msgid"You can boost Weblate’s development on the `donate page`_. Funds collected there are used to enable gratis hosting for libre software projects and further development of Weblate. Please check the `donate page`_ for options, such as funding goals and the rewards you get as a proud funder."msgstr"""Você pode impulsionar o desenvolvimento do Weblate na `página de doação`_. ""Os fundos coletados lá são usados para permitir hospedagem de grátis para ""projetos de software livre e o desenvolvimento adicional do Weblate. Por ""favor, verifique a `página de doação`_ para obter opções, como metas de ""financiamento e as recompensas que você obtém como um financiador orgulhoso."
Building localized documentation emits an error:
index.rst:13: ERROR: Unknown target name: "página de doação". [docutils]
Resulting HTML has one link resolved and one "problematic":
<p>
Você pode impulsionar o desenvolvimento do Weblate na <aclass="reference external" href="https://weblate.org/donate/">página de doação</a>.
Os fundos coletados lá são usados para permitir hospedagem de grátis para projetos de software livre e o desenvolvimento adicional do Weblate.
Por favor, verifique a <ahref="#id1"><spanclass="problematic" id="id2">`página de doação`_</span></a>
para obter opções, como metas de financiamento e as recompensas que você obtém como um financiador orgulhoso.
</p>
Describe the bug
When using separate the link and the target definition, the localization works only for a first link in a string, but not for the second one (with same text).
How to Reproduce
index.rst
withdonate page
link included twice in a single block:PO file with a translation:
Building localized documentation emits an error:
Resulting HTML has one link resolved and one "problematic":
Environment Information
Sphinx extensions
Reproduced without any extensions.
Additional context
Originally reported by @rffontenelle at WeblateOrg/weblate#13356
The text was updated successfully, but these errors were encountered: