Commit 9e8cdcd6 authored by Jonathan Harker's avatar Jonathan Harker
Browse files

Translate LᴀTᴇX document title/author in conf.py

parent 0b6b3811
from __future__ import unicode_literals
# -*- coding: utf-8 -*-
#
# Mahara documentation build configuration file, created by
......@@ -57,8 +59,8 @@ source_suffix = '.rst'
master_doc = 'index'
# General information about the project.
project = u'Mahara'
copyright = u'2011-2016, Catalyst IT and others'
project = 'Mahara'
copyright = '2011-2016, Catalyst IT and others'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
......@@ -191,13 +193,6 @@ htmlhelp_basename = 'Maharadoc'
# -- Options for LaTeX output --------------------------------------------------
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass [howto/manual]).
latex_documents = [
('index', 'Mahara.tex', u'Mahara user manual',
u'Catalyst IT and others', 'manual'),
]
# The name of an image file (relative to this directory) to place at the top of
# the title page.
latex_logo = 'images/mahara_logo.png'
......@@ -205,20 +200,36 @@ latex_logo = 'images/mahara_logo.png'
latex_use_parts = False
LATEX_MAINFONT = 'FreeSerif'
LATEX_BABEL = '\usepackage{babel}'
LATEX_BABEL = '\\usepackage{babel}'
LATEX_TITLE = "Mahara user manual"
LATEX_AUTHOR = "Catalyst IT and others"
language = os.environ.get('sphinxlang', 'en')
if language == 'ja':
LATEX_MAINFONT = 'WenQuanYi Micro Hei'
LATEX_TITLE = "Mahara ユーザマニュアル"
LATEX_AUTHOR = "Catalyst IT および他の著者。"
elif language.startswith('zh'):
LATEX_MAINFONT = 'WenQuanYi Micro Hei'
elif language == 'nl':
LATEX_BABEL = '\usepackage[dutch]{babel}'
LATEX_BABEL = '\\usepackage[dutch]{babel}'
LATEX_TITLE = "Mahara handleiding"
LATEX_AUTHOR = "Catalyst IT en andere autheurs."
elif language == 'de':
LATEX_BABEL = '\usepackage[german]{babel}'
LATEX_BABEL = '\\usepackage[german]{babel}'
LATEX_TITLE = "Mahara Benutzermanual"
LATEX_AUTHOR = "Catalyst IT und andere autoren"
elif language == 'fr':
LATEX_BABEL = '\usepackage[frenchb]{babel}'
LATEX_BABEL = '\\usepackage[frenchb]{babel}'
LATEX_TITLE = "Manuel de l'Utilisateur de Mahara"
LATEX_AUTHOR = "Catalyst IT et d'autres auteurs"
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass [howto/manual]).
latex_documents = [
('index', 'Mahara.tex', LATEX_TITLE, LATEX_AUTHOR, 'manual')
]
LATEX_PREAMBLE = '''
\\RequirePackage{ifxetex}
......@@ -247,18 +258,18 @@ latex_elements = {
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
('index', 'mahara', u'Mahara user manual',
[u'Catalyst IT and others'], 1)
('index', 'mahara', 'Mahara user manual',
['Catalyst IT and others'], 1)
]
# -- Options for Epub output ---------------------------------------------------
# Bibliographic Dublin Core info.
epub_title = u'Mahara 16.04 user manual'
epub_author = u'Catalyst IT and others'
epub_publisher = u'Mahara Project'
epub_copyright = u'2011-2016 Dual licensed under Creative Commons BY-SA 3.0 unported and GNU General Public License version 3 or later, Catalyst IT and others'
epub_title = 'Mahara 16.04 user manual'
epub_author = 'Catalyst IT and others'
epub_publisher = 'Mahara Project'
epub_copyright = '2011-2016 Dual licensed under Creative Commons BY-SA 3.0 unported and GNU General Public License version 3 or later, Catalyst IT and others'
# The language of the text. It defaults to the language option
# or en if the language is not set.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment