X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=cron.d%2F120synctrans;h=3a09451a1546b062a8ebb6545eabd0577cd12aed;hb=6c89d8070adba05c8b39f529fba4fef517db4b80;hp=33c38be14ca05b6ed30bd1fd6aede5268f5a94cc;hpb=dfad5cc970ad91704b0497311c3255673ca37b66;p=deb%2Fpackages.git diff --git a/cron.d/120synctrans b/cron.d/120synctrans index 33c38be..3a09451 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_cmd -N ${ddtp_ftpsite}/dists/${dist}/${part}/i18n/Translation-$locale.gz) done done done