lang/sort_lang.sh: Fix status output bug \n
This commit is contained in:
@@ -19,28 +19,28 @@ sortlang()
|
|||||||
STRINGORDER="A B C D E F G H I J K L M N O P Q R S T U V W X Y Z"
|
STRINGORDER="A B C D E F G H I J K L M N O P Q R S T U V W X Y Z"
|
||||||
CVSID='/* .Id: .* . */'
|
CVSID='/* .Id: .* . */'
|
||||||
|
|
||||||
echo -n "Extracting:"
|
echo -en "Extracting:"
|
||||||
echo -n " head"
|
echo -en " head"
|
||||||
egrep -i -v $TRANSLATIONSTRING $f | \
|
egrep -i -v $TRANSLATIONSTRING $f | \
|
||||||
egrep -v "$STRINGSTRING|$CVSID" | \
|
egrep -v "$STRINGSTRING|$CVSID" | \
|
||||||
sed 's/?>//g;s/<?php//g'| \
|
sed 's/?>//g;s/<?php//g'| \
|
||||||
uniq >>$targetdir/head
|
uniq >>$targetdir/head
|
||||||
|
|
||||||
echo -n " cvs"
|
echo -en " cvs"
|
||||||
head -n10 $f | \
|
head -n10 $f | \
|
||||||
egrep "$CVSID" >>$targetdir/cvs
|
egrep "$CVSID" >>$targetdir/cvs
|
||||||
|
|
||||||
echo -n " strings"
|
echo -en " strings"
|
||||||
egrep -i -v $TRANSLATIONSTRING $f | \
|
egrep -i -v $TRANSLATIONSTRING $f | \
|
||||||
egrep $STRINGSTRING | \
|
egrep $STRINGSTRING | \
|
||||||
egrep -v $WHITESPACE >$targetdir/tmp-tosort
|
egrep -v $WHITESPACE >$targetdir/tmp-tosort
|
||||||
|
|
||||||
echo -n " pending_translations"
|
echo -en " pending_translations"
|
||||||
egrep -i $TRANSLATIONSTRING $f | \
|
egrep -i $TRANSLATIONSTRING $f | \
|
||||||
uniq >$targetdir/tmp-translate
|
uniq >$targetdir/tmp-translate
|
||||||
|
|
||||||
echo -n "\nBuilding:"
|
echo -en "\nBuilding:"
|
||||||
echo -n " strings"
|
echo -en " strings"
|
||||||
for i in $STRINGORDER;
|
for i in $STRINGORDER;
|
||||||
do
|
do
|
||||||
echo
|
echo
|
||||||
@@ -49,7 +49,7 @@ sortlang()
|
|||||||
done | \
|
done | \
|
||||||
uniq >>$targetdir/sort
|
uniq >>$targetdir/sort
|
||||||
|
|
||||||
echo -n " pending_translations"
|
echo -en " pending_translations"
|
||||||
egrep -v $STRINGSTRING $targetdir/tmp-translate | uniq > $targetdir/translate
|
egrep -v $STRINGSTRING $targetdir/tmp-translate | uniq > $targetdir/translate
|
||||||
echo >> $targetdir/translate
|
echo >> $targetdir/translate
|
||||||
for i in $STRINGORDER;
|
for i in $STRINGORDER;
|
||||||
@@ -60,7 +60,7 @@ sortlang()
|
|||||||
done | \
|
done | \
|
||||||
uniq >>$targetdir/translate
|
uniq >>$targetdir/translate
|
||||||
|
|
||||||
echo "\nAssembling final"
|
echo -en "\nAssembling final\n"
|
||||||
f=$f$2
|
f=$f$2
|
||||||
echo "<?php" >$f
|
echo "<?php" >$f
|
||||||
cat $targetdir/cvs $targetdir/head $targetdir/sort $targetdir/translate | \
|
cat $targetdir/cvs $targetdir/head $targetdir/sort $targetdir/translate | \
|
||||||
|
Reference in New Issue
Block a user