merge po with pot before building mo

fixes errors in strings that have been removed from the template
This commit is contained in:
Damien Elmes 2020-02-24 15:35:52 +10:00
parent d9dafe0ba8
commit cd8d1b5dcd

View File

@ -13,5 +13,5 @@ do
perl -pe "s%po/desktop/(.*)/anki.po%$targetDir/\1/LC_MESSAGES%")
outfile="$outdir/anki.mo"
mkdir -p $outdir
msgfmt $file --output-file=$outfile
msgmerge --for-msgfmt $file po/desktop/anki.pot | msgfmt - --output-file=$outfile
done