aboutsummaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2006-07-03 21:50:42 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2006-07-03 21:50:42 +0000
commite1da208c14fa2674a02d28040846ff573ee91c42 (patch)
tree399798f116a744b21bd9914d4343c854764fc425 /bootstrap
parente78a22bcf316dbec49bb934c1722d8b4c8c517ca (diff)
downloadcpio-e1da208c14fa2674a02d28040846ff573ee91c42.tar.gz
cpio-e1da208c14fa2674a02d28040846ff573ee91c42.tar.bz2
(update_po): Fix single translation update
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap8
1 files changed, 7 insertions, 1 deletions
diff --git a/bootstrap b/bootstrap
index 6a7a035..b7678c9 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 &&

Return to:

Send suggestions and report system problems to the System administrator.