diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2006-07-03 21:50:42 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2006-07-03 21:50:42 +0000 |
commit | e1da208c14fa2674a02d28040846ff573ee91c42 (patch) | |
tree | 399798f116a744b21bd9914d4343c854764fc425 /bootstrap | |
parent | e78a22bcf316dbec49bb934c1722d8b4c8c517ca (diff) | |
download | cpio-e1da208c14fa2674a02d28040846ff573ee91c42.tar.gz cpio-e1da208c14fa2674a02d28040846ff573ee91c42.tar.bz2 |
(update_po): Fix single translation update
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 && |