mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Fix updated strings in simple_index.rst not being marked for translation
This commit is contained in:
parent
9eae6a99c7
commit
f8c7d1ae07
@ -64,7 +64,7 @@ def build_manual(language, base):
|
||||
epub_to_azw3(epub_dest)
|
||||
|
||||
def build_pot(base):
|
||||
cmd = [SPHINX_BUILD, '-b', 'gettext', '-t', 'online', '.', base]
|
||||
cmd = [SPHINX_BUILD, '-b', 'gettext', '-t', 'online', '-t', 'gettext', '.', base]
|
||||
print (' '.join(cmd))
|
||||
subprocess.check_call(cmd)
|
||||
os.remove(j(base, 'generated.pot'))
|
||||
|
@ -41,6 +41,11 @@ source_suffix = '.rst'
|
||||
master_doc = 'index' if tags.has('online') else 'simple_index' # noqa
|
||||
# kill the warning about index/simple_index not being in a toctree
|
||||
exclude_patterns = ['simple_index.rst'] if master_doc == 'index' else ['index.rst']
|
||||
if tags.has('gettext'): # noqa
|
||||
# Do not exclude simple_index as its string must be translated. This will
|
||||
# generate a warning about simple_index not being in a toctree, just ignore
|
||||
# it.
|
||||
exclude_patterns = []
|
||||
|
||||
# The language
|
||||
language = os.environ.get('CALIBRE_OVERRIDE_LANG', 'en')
|
||||
|
Loading…
x
Reference in New Issue
Block a user