4 # ** This script compiles locale PO files
6 # ** Usage: compilepo <locale id>
7 # ** Example: compilepo es
9 # ** Philipe Mingo <mingo@rotedic.com>
10 # ** Konstantin Riabitsev <icon@duke.edu>
15 echo "USAGE: compilepo [localename]"
22 if [ ! -d $LOCALEDIR ]; then
23 # lessee if it's been renamed.
24 DCOUNT
=`find $WORKDIR/ -name $1* | wc -l`
25 if [ $DCOUNT -eq 1 ]; then
27 LOCALEDIR
=`find $WORKDIR/ -name $1*`
28 elif [ $DCOUNT -gt 1 ]; then
30 echo "More than one locale matching this name found:"
31 find $WORKDIR/ -name $1*
32 echo "You have to be more specific."
37 echo "Compiling $LOCALEDIR/LC_MESSAGES/squirrelmail.po"
38 msgfmt
-o $LOCALEDIR/LC_MESSAGES
/squirrelmail.mo \
39 -c $LOCALEDIR/LC_MESSAGES
/squirrelmail.po