Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to override English labels inserted by Sphinx

I use the Sphinx Python documentation generator. Creating PDF documents is very easy and simple, but I have one problem.

All generated PDF documents have English words like "chapter", "release", and "part".

How can I override these English labels in another language, or remove them completely?

like image 940
pmoniq Avatar asked Feb 12 '10 11:02

pmoniq


1 Answers

In your conf.py, there is the following paragraph (around line 57 in a conf.py created by sphinx-quickstart):

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#language = None

In my case, I changed it to:

language = nl      # bug!

Which of course should be:

language = 'nl'    # don't forget the quotes :-)

This will work for all Sphinx output; in my case, I only checked the html and latex output. On the Spinx website, there is list of supported languages.

like image 174
Marijn Avatar answered Sep 18 '22 12:09

Marijn