diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-02-10 18:26:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-10 18:26:23 +0100 |
commit | 38c851a3fa14983e60f74703fea2178d52358b92 (patch) | |
tree | d7ba823c6907defc20467cef864f7c92c5b7e4db | |
parent | d6abf8f1583e8a5dfcff655e0fa7cc3d3fc2069d (diff) | |
parent | 40691b2ebeac48c436642aa312fd716f9b3bd588 (diff) |
Merge pull request #57916 from akien-mga/doc-translations-exclude-DOCS_URL-links
-rw-r--r-- | doc/translations/extract.py | 2 |
1 files changed, 2 insertions, 0 deletions
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) |