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
This commit is contained in:
Andreas Jaeger 2015-08-22 14:52:18 +02:00
parent ca583b0507
commit cfe63e2cf6

View File

@ -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"/' \