Skip to content

Commit

Permalink
Merge branch 'exclude-ffsum-translation' of https://github.com/un-pog…
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Nov 21, 2024
2 parents 1c55b09 + 4943ba7 commit 81d0cd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manual/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def source_read_handler(app, docname, source):
src = source[0]
if app.builder.name == 'gettext':
if docname == 'template_lang':
src = re.sub(r':ffdoc:`(.+?)`', ' ', src) # ffdoc should not be translated
src = re.sub(r':(ffdoc|ffsum):`(.+?)`', ' ', src) # ffdoc and ffsum should not be translated
else:
if app.config.language != 'en':
src = re.sub(r'(\s+generated/)en/', r'\1' + app.config.language + '/', src)
Expand Down

0 comments on commit 81d0cd6

Please sign in to comment.