Skip to content

Commit

Permalink
Add quiet mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Mar 30, 2010
1 parent e9909a2 commit ee01556
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions scripts/generate-mo
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
#!/bin/sh
if [ x$1 = x--quiet ] ; then
stats=""
else
stats="--statistics"
fi

for x in po/*.po ; do
lang=`echo $x | sed 's@po/\(.*\)\.po@\1@'`
echo -n "$lang: "
if [ ! -z "$stas" ] ; then
echo -n "$lang: "
fi
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

0 comments on commit ee01556

Please sign in to comment.