X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=cron.d%2F120synctrans;h=a40736f15cbf64a15ceb6829cb9c0378ab556726;hb=c735c12490fbb7684bf186c31235a3ebdc25f617;hp=07511f80e8f528f9f6dd4e43ba2a9916d6e1d081;hpb=5c6714198673760cac701a1e9a90ca08597fccf3;p=deb%2Fpackages.git diff --git a/cron.d/120synctrans b/cron.d/120synctrans index 07511f8..a40736f 100755 --- a/cron.d/120synctrans +++ b/cron.d/120synctrans @@ -35,10 +35,13 @@ 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 fi + +exit 0