aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2006-07-21 08:27:18 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2006-07-21 08:27:18 +0000
commite89bad1a6594fffde8578dd4dd6fecb4c78d1056 (patch)
tree8c25f707e0482b9bbf98c8a84523876effef75ff
parent8ab0260b019cf6cdbfb8069ed168c53cedd55120 (diff)
downloadcflow-e89bad1a6594fffde8578dd4dd6fecb4c78d1056.tar.gz
cflow-e89bad1a6594fffde8578dd4dd6fecb4c78d1056.tar.bz2
(update_po): Fix updating a single translation.
-rwxr-xr-xbuild-aux/bootstrap8
1 files changed, 7 insertions, 1 deletions
diff --git a/build-aux/bootstrap b/build-aux/bootstrap
index 8c10572..d4f223d 100755
--- a/build-aux/bootstrap
+++ b/build-aux/bootstrap
@@ -66,9 +66,15 @@ update_po() {
*.po) POFILE=$1;;
*) POFILE=${1}.po;;
esac
echo "$0: getting translation for $1..."
- wget -r -C off $TP_URL/$POFILE
+ (cd po;
+ wget -r --cache=off -O $POFILE $TP_URL/$POFILE || exit
+ LANG=`expr $POFILE : '\(.*\)\.po'`
+ if ! grep -q $LANG LINGUAS; then
+ mv LINGUAS LINGUAS.$$
+ (echo $LANG; cat LINGUAS.$$) | sort > LINGUAS
+ fi)
else
echo "$0: getting translations into po..."
(cd po &&
rm -f dummy `ls | sed -n '/\.gmo$/p; /\.po/p'` &&

Return to:

Send suggestions and report system problems to the System administrator.