X-Git-Url: https://git.deb.at/?p=deb%2Fpackages.git;a=blobdiff_plain;f=cron.d%2F120synctrans;fp=cron.d%2F120synctrans;h=db71ae454ee1b80b5a4eebf35ec56744f3e1089c;hp=07511f80e8f528f9f6dd4e43ba2a9916d6e1d081;hb=fe95f8c60871738c82fa264e88072d8fe24e899e;hpb=297a81ff5c92326174bbed288ed3bda08ceb867b diff --git a/cron.d/120synctrans b/cron.d/120synctrans index 07511f8..db71ae4 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