Added a check for fuzzy translations
This commit is contained in:
parent
4819f83713
commit
c610c4a62b
|
@ -25,6 +25,7 @@ VERBOSE=0
|
|||
#executables
|
||||
CVS="cvs"
|
||||
GIT="git"
|
||||
GREP="grep"
|
||||
MAKE="make"
|
||||
RM="rm -f"
|
||||
TAR="tar"
|
||||
|
@ -68,6 +69,17 @@ _deforaos_release()
|
|||
return $?
|
||||
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..."
|
||||
_release_diff
|
||||
if [ $? -ne 0 ]; then
|
||||
|
|
Loading…
Reference in New Issue
Block a user