Do not create locations or fuzzy translations for English

This is easier to work with, as translations are generally auto-generated,
but need to be reviewed manually to make sure the quoting style is correct.

Removing locations makes diffs more readable, and not having msgmerge
provide a fuzzy translation allows msgen to actually work.
This commit is contained in:
Simon Richter 2019-01-31 13:04:13 +01:00 committed by Marco Ciampa
parent e1dc42fca0
commit a1b146a2cd
1 changed files with 3 additions and 1 deletions

View File

@ -86,9 +86,11 @@ echo "LANG;TRANSLATED;FUZZY;UNTRANSLATED" > "${CSVFILE}"
for i in $LINGUAS for i in $LINGUAS
do do
echo "## $i" echo "## $i"
msgmerge --force-po $LOCALDIR/$i/kicad.po $LOCALDIR/kicad.pot -o $LOCALDIR/$i/kicad.po 2> /dev/null
if [ "$i" = "en" ] ; then if [ "$i" = "en" ] ; then
msgmerge --no-location --no-fuzzy-matching --force-po $LOCALDIR/$i/kicad.po $LOCALDIR/kicad.pot -o $LOCALDIR/$i/kicad.po 2> /dev/null
msgen $LOCALDIR/$i/kicad.po -o $LOCALDIR/$i/kicad.po.tmp && mv $LOCALDIR/$i/kicad.po.tmp $LOCALDIR/$i/kicad.po msgen $LOCALDIR/$i/kicad.po -o $LOCALDIR/$i/kicad.po.tmp && mv $LOCALDIR/$i/kicad.po.tmp $LOCALDIR/$i/kicad.po
else
msgmerge --force-po $LOCALDIR/$i/kicad.po $LOCALDIR/kicad.pot -o $LOCALDIR/$i/kicad.po 2> /dev/null
fi fi
msgfmt --statistics $LOCALDIR/$i/kicad.po -o $LOCALDIR/messages.mo 2>&1 >>/dev/null | msgfmt --statistics $LOCALDIR/$i/kicad.po -o $LOCALDIR/messages.mo 2>&1 >>/dev/null |
while IFS=",." read A B C D ; do while IFS=",." read A B C D ; do