From e89bad1a6594fffde8578dd4dd6fecb4c78d1056 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Fri, 21 Jul 2006 08:27:18 +0000 Subject: (update_po): Fix updating a single translation. --- build-aux/bootstrap | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'build-aux/bootstrap') diff --git a/build-aux/bootstrap b/build-aux/bootstrap index 8c10572..d4f223d 100755 --- a/build-aux/bootstrap +++ b/build-aux/bootstrap @@ -67,7 +67,13 @@ update_po() { *) 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 && -- cgit v1.2.1