]> Dogcows Code - chaz/tar/commitdiff
(update_po): Fix single translation update
authorSergey Poznyakoff <gray@gnu.org.ua>
Mon, 3 Jul 2006 16:46:14 +0000 (16:46 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Mon, 3 Jul 2006 16:46:14 +0000 (16:46 +0000)
bootstrap

index 64b68a55fd275da3082e3ecc0fe748e22d81789c..5aa460ab926955d53117a13b8c656fff976b1c75 100755 (executable)
--- 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 &&
This page took 0.027304 seconds and 4 git commands to generate.