Open rffontenelle opened 1 year ago
This issue has been added to the backlog. It is not scheduled on the Weblate roadmap, but it eventually might be implemented.
In case you need this feature soon, please consider helping or push it by funding the development.
Describe the issue
I've been translating Weblate Docs for sometime and one issue I've always came across was Sphinx roles incorrectly rendered because of translation mistakes. These mistakes are not reported for the translator (i.e. they were not catch by quality checks), so they might not be noticed by the translator when translation several strings.
I already tried
Steps to reproduce the behavior
Expected behavior
For the translator to be (automatically) notified of mistakes in Sphinx role translations that trigger WARNING: and ERROR: when building and that are incorrectly rendered in the translated documentation.
Screenshots
Here is an example from pt_BR translation of installation in Debian page of Sphinx role
:command:`weblate`
incorrectly translated as:comando:`weblate`
and being rendered like that.Exception traceback
No response
How do you run Weblate?
weblate.org service
Weblate versions
No response
Weblate deploy checks
No response
Additional context
How I found these translation mistakes?
I browsed the build logs of weblate-pt-br at readthedocs and found interesting information.
reading sources... [100%]
WARNINGS:
andERRORS:
startNOTE: The errors/warnings always shows
<filepath>:<linenumber>
, e.g.home/docs/checkouts/readthedocs.org/user_builds/weblate-pt-br/checkouts/latest/docs/admin/auth.rst:676
. The useful part isadmin/auth.rst:676
.location:
(e.g.location:admin/auth.rst:676
)Some examples of issues (removed the file fullpath, keeping only after docs/):
admin/checks.rst:169:<translated>:1: WARNING: Inline interpreted text or phrase reference start-string without end-string.
There was a space before closing backticks::ref:`check-java-printf-format `
admin/install.rst:863:<translated>:1: ERROR: Unknown interpreted text role "django".
I had translated as:django:SECURE_HSTS_SECONDS`
instead of:setting:`django:SECURE_HSTS_SECONDS`
admin/machine.rst:506: WARNING: inconsistent references in translated message. original: [], translated: ['`API do Yandex Tradutor<https://yandex.com/dev/translate/>`_']
I didn't put the space before the URL