]> git.deb.at Git - deb/packages.git/blobdiff - cron.d/120synctrans
Use the web names for languages instead of locale names
[deb/packages.git] / cron.d / 120synctrans
index 33c38be14ca05b6ed30bd1fd6aede5268f5a94cc..437aa921d9cdf0332ee99c8dc4a6eeba2c031a16 100755 (executable)
@@ -19,9 +19,10 @@ then
          test -d us/${dist}/${part}/i18n || mkdir -p us/${dist}/${part}/i18n
          for lang in $ddtplangs
          do
-           echo retrieve translated Descs $dist/$part/$lang
+           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 -q -N ${ddtp_ftpsite}/dists/${dist}/${part}/i18n/Translations-$lang.gz)
+                wget -q -N ${ddtp_ftpsite}/dists/${dist}/${part}/i18n/Translation-$locale.gz)
          done
        done
     done