From 40691b2ebeac48c436642aa312fd716f9b3bd588 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 10 Feb 2022 15:38:10 +0100 Subject: i18n: Exclude `$DOCS_URL` links from classref translations --- doc/translations/extract.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/translations/extract.py b/doc/translations/extract.py index f8223701d5..1295495392 100644 --- a/doc/translations/extract.py +++ b/doc/translations/extract.py @@ -224,6 +224,8 @@ def _make_translation_catalog(classes): if elem.tag in EXTRACT_TAGS: if not elem.text or len(elem.text) == 0: continue + if elem.tag == "link" and "$DOCS_URL" in elem.text: # No need to localize. + continue line_no = elem._start_line_number if elem.text[0] != "\n" else elem._start_line_number + 1 desc_str = elem.text.strip() code_block_regions = _make_codeblock_regions(desc_str, desc_list.path) -- cgit v1.2.3