3.4.0-beta3
[phpmyadmin/sankalp_k.git] / scripts / generate-mo
blobd8c8ab2245bd1617ba5a76b0cc472728d8e62c5c
1 #!/bin/sh
2 if [ x$1 = x--quiet ] ; then
3 stats=""
4 shift
5 else
6 stats="--statistics"
7 fi
9 compile() {
10 lang=`echo $1 | sed 's@po/\(.*\)\.po@\1@'`
11 if [ ! -z "$stats" ] ; then
12 echo -n "$lang: "
14 mkdir -p locale/$lang/LC_MESSAGES
15 msgfmt $stats --check -o locale/$lang/LC_MESSAGES/phpmyadmin.mo $1
18 if [ ! -z "$1" ] ; then
19 compile po/$1.po
20 exit 0
23 for x in po/*.po ; do
24 compile $x
25 done