From cd8d1b5dcdc9af93a67f947d10b73bdfb7da544c Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 24 Feb 2020 15:35:52 +1000 Subject: [PATCH] merge po with pot before building mo fixes errors in strings that have been removed from the template --- qt/i18n/build-mo-files | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/i18n/build-mo-files b/qt/i18n/build-mo-files index ec0b8a1b6..4666a7e44 100755 --- a/qt/i18n/build-mo-files +++ b/qt/i18n/build-mo-files @@ -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