Sync glossary to training-guides and ha-guide

Sync glossary to training-guides and ha-guide the same way we handle
security-doc and operations-guide.

Change-Id: Ib388df025798d344e24a104c93368f6beb371f08
This commit is contained in:
Andreas Jaeger 2014-09-19 10:37:05 +02:00
parent aa3995e44c
commit dc413f1d0f
2 changed files with 16 additions and 5 deletions

View File

@ -1,2 +1,4 @@
openstack/ha-guide
openstack/operations-guide
openstack/security-doc
openstack/training-guides

View File

@ -20,14 +20,22 @@ if [ -z "$PROJECT_DIR" ] ; then
fi
case "$PROJECT_DIR" in
security-doc)
GLOSSARY_SUB_DIR="glossary"
ENT_DIR="security-guide"
ha-guide)
GLOSSARY_SUB_DIR="doc/glossary"
ENT_DIR="high-availability-guide"
;;
operations-guide)
GLOSSARY_SUB_DIR="doc/glossary"
ENT_DIR="openstack-ops"
;;
security-doc)
GLOSSARY_SUB_DIR="glossary"
ENT_DIR="security-guide"
;;
training-guides)
GLOSSARY_SUB_DIR="doc/glossary"
ENT_DIR="training-guides"
;;
*)
echo "$PROJECT_DIR not handled"
exit 1
@ -36,8 +44,9 @@ esac
GLOSSARY_DIR="$PROJECT_DIR/$GLOSSARY_SUB_DIR"
cp doc/glossary/glossary-terms.xml $GLOSSARY_DIR/
# Copy only Japanese translation since security-guide and
# operations-guide are only translated to Japanese for now.
# Copy only Japanese translation since ha-guide, security-guide, and
# operations-guide are only translated to Japanese currently - and
# training-guides is not translated at all.
cp doc/glossary/locale/ja.po $GLOSSARY_DIR/locale/
sed -i -e "s|\"../common/entities/openstack.ent\"|\"../$ENT_DIR/openstack.ent\"|" \
$GLOSSARY_DIR/glossary-terms.xml