godot-docs-l10n
godot-docs-l10n copied to clipboard
Weblate includes some strings that shouldn't be translated
I noticed that there are lots of strings like :ref:'doc_what_are_godot_classes'
from docs_changelog.rst
. They are references and their name is auto-fetched from the page title, so they shouldn't be translated. Dunno if it's possible to add some exceptions, this applies to any string that contains only page reference.
There's no easy way around it, sphinx-intl
will extract all strings and doesn't give us control on specific ones to ignore. Doing a post-processing on the generated templates would be quite difficult to maintain.
The only option I can think of would be to create a custom Sphinx role like :notranslate:
but it likely won't play well with a nested :ref:
in it anyway.
Docs for translators should advise to leave those strings alone, as translators already need to do for :ref:
links when they are in the middle of a sentence.