mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-04 03:27:00 -05:00 
			
		
		
		
	Translate the title for the User Manual
This commit is contained in:
		
							parent
							
								
									d5879944cf
								
							
						
					
					
						commit
						9642774ac9
					
				@ -73,6 +73,15 @@ today_fmt = '%B %d, %Y'
 | 
			
		||||
unused_docs = ['global', 'cli/global']
 | 
			
		||||
 | 
			
		||||
locale_dirs = ['locale/']
 | 
			
		||||
title = '%s User Manual' % __appname__
 | 
			
		||||
if language not in {'en', 'eng'}:
 | 
			
		||||
    import gettext
 | 
			
		||||
    try:
 | 
			
		||||
        t = gettext.translation('simple_index', locale_dirs[0], [language])
 | 
			
		||||
    except IOError:
 | 
			
		||||
        pass
 | 
			
		||||
    else:
 | 
			
		||||
        title = t.ugettext(title)
 | 
			
		||||
 | 
			
		||||
# If true, '()' will be appended to :func: etc. cross-reference text.
 | 
			
		||||
# add_function_parentheses = True
 | 
			
		||||
@ -120,7 +129,7 @@ html_last_updated_fmt = '%b %d, %Y'
 | 
			
		||||
html_use_smartypants = True
 | 
			
		||||
 | 
			
		||||
# Overall title of the documentation
 | 
			
		||||
html_title       = 'calibre User Manual'
 | 
			
		||||
html_title       = title
 | 
			
		||||
html_short_title = 'Start'
 | 
			
		||||
html_logo        = 'resources/logo.png'
 | 
			
		||||
 | 
			
		||||
@ -164,8 +173,7 @@ latex_font_size = '10pt'
 | 
			
		||||
 | 
			
		||||
# Grouping the document tree into LaTeX files. List of tuples
 | 
			
		||||
# (source start file, target name, title, author, document class [howto/manual]).
 | 
			
		||||
latex_documents = [(master_doc, 'calibre.tex', 'calibre User Manual',
 | 
			
		||||
    'Kovid Goyal', 'manual', False)]
 | 
			
		||||
latex_documents = [(master_doc, 'calibre.tex', title, 'Kovid Goyal', 'manual', False)]
 | 
			
		||||
 | 
			
		||||
# Additional stuff for the LaTeX preamble.
 | 
			
		||||
# latex_preamble = ''
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user