Browse Source

Add --use-first option to msgcat

When msgcat command merge common-rst po files,
it uses only first msgstr so that Sphinx handles
properly the po file.

Change-Id: I0e744646bfe1fd398cffda316872128d563c893a
changes/65/193865/3 0.29.1
KATO Tomoyuki 6 years ago
committed by Andreas Jaeger
parent
commit
f7895df40e
  1. 5
      RELEASE_NOTES.rst
  2. 6
      bin/doc-tools-check-languages

5
RELEASE_NOTES.rst

@ -1,6 +1,11 @@
Release notes
=============
0.29.1
------
* ``doc-tools-check-languages``: Fix building of translated RST guides.
0.29.0
------

6
bin/doc-tools-check-languages

@ -51,9 +51,9 @@ function build_rst {
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
msgcat --use-first -o ${DOC_DIR}${book}/source/locale/${language}/${book}.po \
${DOC_DIR}${book}/source/locale/${language}/LC_MESSAGES/${book}.po \
${DOC_DIR}common-rst/source/locale/${language}/LC_MESSAGES/common-rst.po
mv -f ${DOC_DIR}${book}/source/locale/${language}/${book}.po \
${DOC_DIR}${book}/source/locale/${language}/LC_MESSAGES/${book}.po
fi

Loading…
Cancel
Save