X-Git-Url: https://git.deb.at/?a=blobdiff_plain;ds=sidebyside;f=cron.d%2F120synctrans;h=437aa921d9cdf0332ee99c8dc4a6eeba2c031a16;hb=a3fd68e78cd0c1eb1dbff6b48accaca5b2b54637;hp=33c38be14ca05b6ed30bd1fd6aede5268f5a94cc;hpb=dfad5cc970ad91704b0497311c3255673ca37b66;p=deb%2Fpackages.git diff --git a/cron.d/120synctrans b/cron.d/120synctrans index 33c38be..437aa92 100755 --- a/cron.d/120synctrans +++ b/cron.d/120synctrans @@ -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