Merge pull request #57916 from akien-mga/doc-translations-exclude-DOCS_URL-links
This commit is contained in:
commit
38c851a3fa
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue