Start adding basic login infrastructure (still needs styling)
[gitphp.git] / util / msgfmt.sh
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/bash
#
# msgfmt.sh
#
# Recompiles binary MO files for all languages
#
# @author Christopher Han <xiphux@gmail.com>
# @copyright Copyright (c) 2010 Christopher Han
# @package GitPHP
# @package util
#
 
LOCALEDIR="locale"
BUNDLE="gitphp"
 
for i in "$LOCALEDIR"/*; do
        if [ -d "$i" ]; then
                if [ -e "${i}/${BUNDLE}.po" ]; then
                        echo "Building ${i}..."
                        rm -f "${i}/${BUNDLE}.mo"
                        msgfmt -v -o "${i}/${BUNDLE}.mo" "${i}/${BUNDLE}.po"
                fi
        fi
done
 
comments