Added a check for fuzzy translations

This commit is contained in:
Pierre Pronchery 2013-11-25 01:46:38 +01:00
parent 4819f83713
commit c610c4a62b

View File

@ -25,6 +25,7 @@ VERBOSE=0
#executables #executables
CVS="cvs" CVS="cvs"
GIT="git" GIT="git"
GREP="grep"
MAKE="make" MAKE="make"
RM="rm -f" RM="rm -f"
TAR="tar" TAR="tar"
@ -68,6 +69,17 @@ _deforaos_release()
return $? return $?
fi fi
if test -f "po/$PACKAGE.pot"; then
_info "Checking the translations..."
$RM -- "po/$PACKAGE.pot" || return 2
(cd "po" && $MAKE) || return 2
$GREP -q "fuzzy" -- po/*.po
if [ $? -eq 0 ]; then
_error "Some translations are fuzzy"
return $?
fi
fi
_info "Checking for differences..." _info "Checking for differences..."
_release_diff _release_diff
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then