Add quiet mode.
This commit is contained in:
@@ -1,7 +1,15 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
if [ x$1 = x--quiet ] ; then
|
||||||
|
stats=""
|
||||||
|
else
|
||||||
|
stats="--statistics"
|
||||||
|
fi
|
||||||
|
|
||||||
for x in po/*.po ; do
|
for x in po/*.po ; do
|
||||||
lang=`echo $x | sed 's@po/\(.*\)\.po@\1@'`
|
lang=`echo $x | sed 's@po/\(.*\)\.po@\1@'`
|
||||||
|
if [ ! -z "$stas" ] ; then
|
||||||
echo -n "$lang: "
|
echo -n "$lang: "
|
||||||
|
fi
|
||||||
mkdir -p locale/$lang/LC_MESSAGES
|
mkdir -p locale/$lang/LC_MESSAGES
|
||||||
msgfmt --statistics --check -o locale/$lang/LC_MESSAGES/phpmyadmin.mo $x
|
msgfmt $stats --check -o locale/$lang/LC_MESSAGES/phpmyadmin.mo $x
|
||||||
done
|
done
|
||||||
|
Reference in New Issue
Block a user