From d1dedae4026c50d0d68dcc755f9fb27e9b425805 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Mon, 3 Jul 2006 16:46:14 +0000 Subject: [PATCH] (update_po): Fix single translation update --- bootstrap | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bootstrap b/bootstrap index 64b68a5..5aa460a 100755 --- a/bootstrap +++ b/bootstrap @@ -71,7 +71,13 @@ update_po() { *) POFILE=${1}.po;; esac echo "$0: getting translation for $1..." - wget -r --cache=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 && -- 2.44.0