2
0
Fork 0

i18n: Exclude `$DOCS_URL` links from classref translations

4.0
Rémi Verschelde 2022-02-10 15:38:10 +07:00
parent 242c636a63
commit 40691b2ebe
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 2 additions and 0 deletions

@ -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)