Skip to content

Commit ddc35b0

Browse files
committed
Config i18n for submodule usage
1 parent 3049354 commit ddc35b0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ PAPEROPT_a4 = -D latex_paper_size=a4
2222
PAPEROPT_letter = -D latex_paper_size=letter
2323
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
2424
# the i18n builder cannot share the environment and doctrees with the others
25-
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
25+
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) -t i18n .
2626

2727
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest coverage gettext
2828

@@ -161,9 +161,9 @@ info:
161161
@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
162162

163163
gettext:
164-
$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
164+
$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) ../sphinx/templates
165165
@echo
166-
@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
166+
@echo "Build finished. The message catalogs are in ../sphinx/templates."
167167

168168
changes:
169169
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes

conf.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@
9696
]
9797

9898
# -- I18n settings --------------------------------------------------------
99-
locale_dirs = ['locale/']
99+
100+
locale_dirs = ['../sphinx/po/']
100101
gettext_compact = False
101102
# Exclude class reference when marked with tag i18n.
102103
if tags.has('i18n'):

0 commit comments

Comments
 (0)