godot-docs-l10n icon indicating copy to clipboard operation
godot-docs-l10n copied to clipboard

Weblate includes some strings that shouldn't be translated

Open KoBeWi opened this issue 4 years ago • 1 comments

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.

KoBeWi avatar Jun 02 '20 18:06 KoBeWi

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.

akien-mga avatar Jun 03 '20 12:06 akien-mga