use better variant to deal with missing entries instead of error suppression to fix...
[authserver.git] / locale / l10n-finish
CommitLineData
9cab985c
RK
1#!/bin/bash
2
3LOCALEDIR="$( dirname $0 )"
4
5if [ -n "$1" -a -e "$LOCALEDIR/$1" ]; then
6 msgfmt $LOCALEDIR/$1/LC_MESSAGES/kairo_auth.po -o $LOCALEDIR/$1/LC_MESSAGES/kairo_auth.mo
7else
8 echo "You have to specify a local code to finish."
9 echo "Accepted locales:"
10 for localesub in $LOCALEDIR/*; do
11 if [ -d $localesub ]; then
12 LOCALE="$( basename $localesub )"
13 if [ "$LOCALE" != "en_US" ]; then
14 echo " $LOCALE"
15 fi
16 fi
17 done
18fi