Skip to content

Commit

Permalink
i18n: Exclude $DOCS_URL links from classref translations
Browse files Browse the repository at this point in the history
  • Loading branch information
akien-mga committed Feb 10, 2022
1 parent 242c636 commit 40691b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/translations/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 40691b2

Please sign in to comment.