mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Dont include :ffsum: in .po file
This commit is contained in:
parent
1c55b093e5
commit
4943ba7c8b
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user