Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weblate includes some strings that shouldn't be translated #7

Open
KoBeWi opened this issue Jun 2, 2020 · 1 comment
Open

Weblate includes some strings that shouldn't be translated #7

KoBeWi opened this issue Jun 2, 2020 · 1 comment

Comments

@KoBeWi
Copy link
Member

KoBeWi commented Jun 2, 2020

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.

@akien-mga
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants