summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2013-06-08 15:05:50 +0200
committerClaude Paroz <claude@2xlibre.net>2013-06-08 16:14:45 +0200
commit44a0abd7928b7f81a9b0e272b1dddd92f1913e0d (patch)
treefab124476b0453df9474cda34e2b539f2fefcb76 /docs
parent023710211f0ab9d914dc8967dc6c77b8b30c39a6 (diff)
[1.5.x] Allow build of translated documentation
Backport of 6a092f24e from master.
Diffstat (limited to 'docs')
-rw-r--r--docs/Makefile3
-rw-r--r--docs/conf.py3
2 files changed, 5 insertions, 1 deletions
diff --git a/docs/Makefile b/docs/Makefile
index 2a8bcd7101..a2c926c7ea 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -6,11 +6,12 @@ SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = _build
+LANGUAGE =
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
-ALLSPHINXOPTS = -n -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
+ALLSPHINXOPTS = -n -d $(BUILDDIR)/doctrees -D language=$(LANGUAGE) $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
diff --git a/docs/conf.py b/docs/conf.py
index a3259e3083..0437491b82 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -62,6 +62,9 @@ django_next_version = '1.6'
# for a list of supported languages.
#language = None
+# Location for .po/.mo translation files used when language is set
+locale_dirs = ['locale/']
+
# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
#today = ''