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:
parent
7c52f19f16
commit
8e31e6cd26
@ -116,12 +116,14 @@ function setup_manuals {
|
||||
fi
|
||||
IS_RST=0
|
||||
if [ ${SPECIAL_BOOKS["${DOCNAME}"]+_} ] ; then
|
||||
if [ ${SPECIAL_BOOKS["${DOCNAME}"]} == "RST" ] ; then
|
||||
IS_RST=1
|
||||
fi
|
||||
if [ ${SPECIAL_BOOKS["${DOCNAME}"]} == "skip" ] ; then
|
||||
continue
|
||||
fi
|
||||
case "${SPECIAL_BOOKS["${DOCNAME}"]}" in
|
||||
RST)
|
||||
IS_RST=1
|
||||
;;
|
||||
skip)
|
||||
continue
|
||||
;;
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user