[i18n] Simplify common files translation for Liberty

backport: liberty

Closes-Bug: #1581970
Change-Id: I6e0c5b67f1368f5a1927c939c7db15e596182cdc
This commit is contained in:
KATO Tomoyuki 2016-05-05 09:49:08 +09:00
parent 4055ca3544
commit d4859e90fe
1 changed files with 1 additions and 12 deletions

View File

@ -82,18 +82,7 @@ fi
sphinx-build -j $NUMBER_OF_CORES -b gettext $TAG ${DIRECTORY}/source/ \
${DIRECTORY}/source/locale/
if [[ "$REPOSITORY" = "openstack-manuals" && "$DOCNAME" = "common-rst" ]] ; then
# Do not come here, exit at the above block.
# dummy method to avoid syntax error
exit 0
# In case of common-rst, we use the working directory 'common-rst-work'.
# Copies the generated POT to common-rst/source/locale
# and finally removes the working directory.
# msgcat ${DIRECTORY}/source/locale/common.pot | \
# awk '$0 !~ /^\# [a-z0-9]+$/' \
# > ${TOPDIR}common-rst/source/locale/common-rst.pot
# rm -rf $DIRECTORY
else
if [[ "$REPOSITORY" = "openstack-manuals" && "$DOCNAME" = "install-guide" ]] ; then
# save common.pot as common-rst to translate
mv -f ${DIRECTORY}/source/locale/common.pot \
${TOPDIR}common-rst/source/locale/common-rst.pot