From cfe63e2cf62c26e80b3d4ac0d4c61e5b1aa98922 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sat, 22 Aug 2015 14:52:18 +0200 Subject: [PATCH] Install Guide: Include tagged content for translation Enhance script so that content for all tags is generated and send to our translation server. Change-Id: I95a1e1661222cbba580e5f78837b40966ca03652 --- tools/generatepot-rst.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/generatepot-rst.sh b/tools/generatepot-rst.sh index 8610264634..2a78a5d199 100755 --- a/tools/generatepot-rst.sh +++ b/tools/generatepot-rst.sh @@ -32,7 +32,13 @@ tools/glossary2rst.py doc/common-rst/glossary.rst # old references rm -f doc/$DOCNAME/source/locale/$DOCNAME.pot -sphinx-build -b gettext doc/$DOCNAME/source/ doc/$DOCNAME/source/locale/ + +# We need to extract all strings, so add all supported tags +TAG="" +if [ ${DOCNAME} = "install-guide" ] ; then + TAG="-t obs -t rdo -t ubuntu -t debian" +fi +sphinx-build -b gettext $TAG doc/$DOCNAME/source/ doc/$DOCNAME/source/locale/ # Update common sed -i -e 's/^"Project-Id-Version: [a-zA-Z0-9\. ]+\\n"$/"Project-Id-Version: \\n"/' \