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>
This commit is contained in:
parent
9263ac8c5a
commit
6a846ecfe8
|
@ -1,6 +1,11 @@
|
|||
Release notes
|
||||
=============
|
||||
|
||||
0.29.0
|
||||
------
|
||||
|
||||
* ``doc-tools-check-languages``: Handle common-rst directory.
|
||||
|
||||
0.28
|
||||
----
|
||||
|
||||
|
|
|
@ -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…
Reference in New Issue