2006-04-26 12:28:53 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Update po files in locales/$1/LC_MESSAGES
|
|
|
|
#
|
2006-05-09 16:12:09 +00:00
|
|
|
if [ "$1" = "all" ]
|
|
|
|
then
|
|
|
|
find -type d -maxdepth 1 -mindepth 1 -exec ./updatelang.sh {} \;
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2006-04-26 12:28:53 +00:00
|
|
|
if [ -d $1/LC_MESSAGES ]
|
|
|
|
then
|
2006-05-13 21:05:48 +00:00
|
|
|
for i in *.po
|
2006-04-26 12:28:53 +00:00
|
|
|
do
|
|
|
|
echo -n "Updating $i : "
|
2006-05-13 21:05:48 +00:00
|
|
|
msgmerge -v -U $1/LC_MESSAGES/$i $i
|
2006-04-26 12:28:53 +00:00
|
|
|
echo " Done."
|
|
|
|
done
|
|
|
|
else
|
2006-05-09 16:12:09 +00:00
|
|
|
echo "Usage : updatelang.sh <lang code>"
|
|
|
|
echo " Update the .po files in <lang code>/LC_MESSAGES directory"
|
|
|
|
echo " Use 'all' as lang code to update all the po files"
|
2006-04-26 12:28:53 +00:00
|
|
|
fi
|