Fix glossary recognition
Fix last change to be applied at proper place. The glossary test needs to be in the !RST case, move it over. Change-Id: Ib629ad85edd7f57288c94056154d1359126a4eac
This commit is contained in:
parent
fab9192c3e
commit
7268fd329d
@ -163,13 +163,8 @@ function setup_manuals {
|
|||||||
if [ ${IS_RST} -eq 1 ] ; then
|
if [ ${IS_RST} -eq 1 ] ; then
|
||||||
tox -e generatepot-rst -- ${DOCNAME}
|
tox -e generatepot-rst -- ${DOCNAME}
|
||||||
git add ${DocFolder}/${DOCNAME}/source/locale/${DOCNAME}.pot
|
git add ${DocFolder}/${DOCNAME}/source/locale/${DOCNAME}.pot
|
||||||
SLUG=${DOCNAME}
|
|
||||||
if [ $SLUG = "glossary" ] ; then
|
|
||||||
# Transifex reserves glossary as SLUG, we need a different name.
|
|
||||||
SLUG="glossary-1"
|
|
||||||
fi
|
|
||||||
# Set auto-local
|
# Set auto-local
|
||||||
tx set --auto-local -r openstack-manuals-i18n.${SLUG} \
|
tx set --auto-local -r openstack-manuals-i18n.${DOCNAME} \
|
||||||
"${DocFolder}/${DOCNAME}/source/locale/<lang>/LC_MESSAGES/${DOCNAME}.po" \
|
"${DocFolder}/${DOCNAME}/source/locale/<lang>/LC_MESSAGES/${DOCNAME}.po" \
|
||||||
--source-lang en \
|
--source-lang en \
|
||||||
--source-file ${DocFolder}/${DOCNAME}/source/locale/${DOCNAME}.pot \
|
--source-file ${DocFolder}/${DOCNAME}/source/locale/${DOCNAME}.pot \
|
||||||
@ -179,11 +174,16 @@ function setup_manuals {
|
|||||||
else
|
else
|
||||||
# Update the .pot file
|
# Update the .pot file
|
||||||
./tools/generatepot ${DOCNAME}
|
./tools/generatepot ${DOCNAME}
|
||||||
|
SLUG=${DOCNAME}
|
||||||
|
if [ $SLUG = "glossary" ] ; then
|
||||||
|
# Transifex reserves glossary as SLUG, we need a different name.
|
||||||
|
SLUG="glossary-1"
|
||||||
|
fi
|
||||||
if [ -f ${DocFolder}/${DOCNAME}/locale/${DOCNAME}.pot ]; then
|
if [ -f ${DocFolder}/${DOCNAME}/locale/${DOCNAME}.pot ]; then
|
||||||
# Add all changed files to git
|
# Add all changed files to git
|
||||||
git add ${DocFolder}/${DOCNAME}/locale/${DOCNAME}.pot
|
git add ${DocFolder}/${DOCNAME}/locale/${DOCNAME}.pot
|
||||||
# Set auto-local
|
# Set auto-local
|
||||||
tx set --auto-local -r openstack-manuals-i18n.${DOCNAME} \
|
tx set --auto-local -r openstack-manuals-i18n.${SLUG} \
|
||||||
"${DocFolder}/${DOCNAME}/locale/<lang>.po" --source-lang en \
|
"${DocFolder}/${DOCNAME}/locale/<lang>.po" --source-lang en \
|
||||||
--source-file ${DocFolder}/${DOCNAME}/locale/${DOCNAME}.pot \
|
--source-file ${DocFolder}/${DOCNAME}/locale/${DOCNAME}.pot \
|
||||||
--minimum-perc=$PERC \
|
--minimum-perc=$PERC \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user