Welcome to mirror list, hosted at ThFree Co, Russian Federation.

generate-mo « scripts - github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d8c8ab2245bd1617ba5a76b0cc472728d8e62c5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
if [ x$1 = x--quiet ] ; then
    stats=""
    shift
else
    stats="--statistics"
fi

compile() {
    lang=`echo $1 | 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 $1
}

if [ ! -z "$1" ] ; then
    compile po/$1.po
    exit 0
fi

for x in po/*.po  ; do 
    compile $x
done