]> git.deb.at Git - deb/packages.git/blobdiff - cron.d/120synctrans
Enable zh-tw
[deb/packages.git] / cron.d / 120synctrans
index 07511f80e8f528f9f6dd4e43ba2a9916d6e1d081..bd3e31d17dba8239e059f42cce995e952b897323 100755 (executable)
@@ -22,7 +22,7 @@ then
            locale=$(echo $lang|perl -p -e 's/^([a-z]{2})-([a-z]{2})$/"$1_".uc($2)/e')
            echo "retrieve translated Descs $dist/$part/$lang ($locale)"
             (cd us/${dist}/${part}/i18n &&
-                $wget_cmd -N ${ddtp_ftpsite}/dists/${dist}/${part}/i18n/Translation-$locale.gz)
+                $wget_cmd -N ${ddtp_ftpsite}/dists/${dist}/${part}/i18n/Translation-$locale.bz2)
          done
        done
     done
@@ -35,10 +35,13 @@ else
          test -d us/${dist}/${part}/i18n || mkdir -p us/${dist}/${part}/i18n
          for lang in $ddtplangs
          do
-           echo retrieve translated Descs $dist/$part/$lang
-            rsync -t ${localdir}/dists/${dist}/${part}/i18n/Translation-$lang.gz \
-               us/${dist}/${part}/i18n/Translation-$lang.gz
+           locale=$(echo $lang|perl -p -e 's/^([a-z]{2})-([a-z]{2})$/"$1_".uc($2)/e')
+           echo "retrieve translated Descs $dist/$part/$lang ($locale)"
+            rsync -t ${localdir}/dists/${dist}/${part}/i18n/Translation-$locale.bz2 \
+               us/${dist}/${part}/i18n/Translation-$locale.bz2
          done
        done
     done
 fi
+
+exit 0