X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=cron.d%2F120synctrans;h=5bfd9599b67452147708d787d5778b5f30f67b44;hb=9083dcf3a523120cfb4cd905d26dada501678aea;hp=3a09451a1546b062a8ebb6545eabd0577cd12aed;hpb=1c11bb86bf5ae74dd41f0d23193e955f806109ad;p=deb%2Fpackages.git diff --git a/cron.d/120synctrans b/cron.d/120synctrans index 3a09451..5bfd959 100755 --- a/cron.d/120synctrans +++ b/cron.d/120synctrans @@ -35,9 +35,10 @@ 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.gz \ + us/${dist}/${part}/i18n/Translation-$locale.gz done done done