Browse Source

Handle common-rst pot file

Merge in content from separate common-rst pot file for translations.

Change-Id: I2b530ea7dad5dc77a72ed8d4bfcf52fa7aef6c46
Co-Authored-By: KATO Tomoyuki <kato.tomoyuki@jp.fujitsu.com>
changes/10/192710/1
Andreas Jaeger 6 years ago
parent
commit
6a846ecfe8
  1. 5
      RELEASE_NOTES.rst
  2. 8
      bin/doc-tools-check-languages

5
RELEASE_NOTES.rst

@ -1,6 +1,11 @@
Release notes
=============
0.29.0
------
* ``doc-tools-check-languages``: Handle common-rst directory.
0.28
----

8
bin/doc-tools-check-languages

@ -49,6 +49,14 @@ function build_rst {
TAG="-t libcloud -t fog"
fi
tox -evenv "sphinx-build -W -b gettext $TAG ${DOC_DIR}${book}/source/ ${DOC_DIR}${book}/source/locale/"
# Merge the common-rst po file in
if [[ -e ${DOC_DIR}common-rst/source/locale/${language}/LC_MESSAGES/common-rst.po ]] ; then
msgcat -o ${DOC_DIR}${book}/source/locale/${language}/${book}.po \
${DOC_DIR}common-rst/source/locale/${language}/LC_MESSAGES/common-rst.po \
${DOC_DIR}${book}/source/locale/${language}/LC_MESSAGES/${book}.po
mv -f ${DOC_DIR}${book}/source/locale/${language}/${book}.po \
${DOC_DIR}${book}/source/locale/${language}/LC_MESSAGES/${book}.po
fi
# Now run msgmerge on all files
for f in ${DOC_DIR}${book}/source/locale/*.pot ; do
# Skip the master file

Loading…
Cancel
Save