Files
phpmyadmin/scripts/generate-mo
Michal Čihař b068e5d7b5 Fix typo.
2010-03-30 13:59:40 +02:00

16 lines
336 B
Bash
Executable File

#!/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@'`
if [ ! -z "$stats" ] ; then
echo -n "$lang: "
fi
mkdir -p locale/$lang/LC_MESSAGES
msgfmt $stats --check -o locale/$lang/LC_MESSAGES/phpmyadmin.mo $x
done