From 097f078205c9d4c405c0edcc80b24529142deb42 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 8 Jan 2012 13:27:50 -0500 Subject: [PATCH] fix the gettext to be the same way sphinx-quickstart gives you --- doc/build/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/doc/build/Makefile b/doc/build/Makefile index 375b61ff9f..3c336da196 100644 --- a/doc/build/Makefile +++ b/doc/build/Makefile @@ -11,13 +11,15 @@ BUILDDIR = output PAPEROPT_a4 = -D latex_paper_size=a4 PAPEROPT_letter = -D latex_paper_size=letter ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . +# the i18n builder cannot share the environment and doctrees with the others +I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . -.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest dist-html site-mako +.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest dist-html site-mako gettext help: @echo "Please use \`make ' where is one of" @echo " html to make standalone HTML files" - @echo " gettext generate .pot files" + @echo " gettext to make PO message catalogs" @echo " dist-html same as html, but places files in /doc" @echo " site-mako to make sqlalchemy.org Mako files" @echo " dirhtml to make HTML files named index.html in directories" @@ -45,7 +47,9 @@ html: @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." gettext: - $(SPHINXBUILD) -b gettext $(SPHINXOPTS) . $(BUILDDIR)/gettext + $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale + @echo + @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale." dist-html: $(SPHINXBUILD) -b html -A mako_layout=html $(ALLSPHINXOPTS) .. -- 2.47.2