Commit 9eac52e3 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

fix using english pages when not translated

parent 41f87ea1
Pipeline #8169 passed with stage
in 1 minute and 53 seconds
......@@ -161,13 +161,12 @@ function generate_md_files {
TRANSLATED=`msggrep --location=${SRC_MD_FILE} ${DIR_PO}/${PO_FILE} | msgattrib --translated | wc -l`
if [ ${TRANSLATED} == "0" ]; then
echo "Ignoring untranslated $OUT_MD_FILE"
cp ${SRC_MD_FILE} ${OUT_MD_FILE}
continue;
cp ${SRC_MD_FILE} ${OUT_TMP_MD_FILE}
else
echo "Translating $OUT_MD_FILE"
po4a-translate -f text -o markdown -L utf-8 -M utf-8 -m ${MD} -p ${PO} -l ${OUT_TMP_MD_FILE} -k 0
fi
echo "Translating $OUT_MD_FILE"
po4a-translate -f text -o markdown -L utf-8 -M utf-8 -m ${MD} -p ${PO} -l ${OUT_TMP_MD_FILE} -k 0
# Extract the front matter from the source and add it
# to the top of the final i18n .md file (after
# stripping the "# [TITLE]" line we added
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment