mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-30 01:52:58 +02:00
Fix translations not working for praragraphs in the user manual that contain references to generated docs
This commit is contained in:
parent
5c50fd8b0d
commit
bfbb9edd54
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ def substitute(app, doctree):
|
|||
|
||||
def source_read_handler(app, docname, source):
|
||||
src = source[0]
|
||||
src = src.replace('|lang|', app.config.language)
|
||||
src = src.replace(' generated/|lang|', ' generated/' + app.config.language).replace('|lang|', 'en')
|
||||
# Sphinx does not call source_read_handle for the .. include directive
|
||||
for m in reversed(tuple(include_pat.finditer(src))):
|
||||
ss = [open(m.group(1)).read().decode('utf-8')]
|
||||
|
|
|
|||
Loading…
Reference in a new issue