Fix path of RST locale file

locale files in RST folders are under $DOCNAME/source/locale/, fix one
error.

Also, small refactor of an condition.

Change-Id: I9a61b2d0e26bd19e2b0c1b8b95b2369530b05fcf
This commit is contained in:
Andreas Jaeger 2015-03-09 18:37:06 +01:00
parent 7c52f19f16
commit 8e31e6cd26

View File

@ -116,12 +116,14 @@ function setup_manuals {
fi
IS_RST=0
if [ ${SPECIAL_BOOKS["${DOCNAME}"]+_} ] ; then
if [ ${SPECIAL_BOOKS["${DOCNAME}"]} == "RST" ] ; then
case "${SPECIAL_BOOKS["${DOCNAME}"]}" in
RST)
IS_RST=1
fi
if [ ${SPECIAL_BOOKS["${DOCNAME}"]} == "skip" ] ; then
;;
skip)
continue
fi
;;
esac
fi
if [ ${IS_RST} -eq 1 ] ; then
tox -e generatepot-rst -- ${DOCNAME}
@ -130,7 +132,7 @@ function setup_manuals {
tx set --auto-local -r openstack-manuals-i18n.${DOCNAME} \
"${DocFolder}/${DOCNAME}/source/locale/<lang>/LC_MESSAGES/${DOCNAME}.po" \
--source-lang en \
--source-file ${DocFolder}/${DOCNAME}/locale/${DOCNAME}.pot \
--source-file ${DocFolder}/${DOCNAME}/source/locale/${DOCNAME}.pot \
--minimum-perc=$PERC \
-t PO --execute
else