From 2128ec657b3d6bb3378424d0ddda923cdf8e2713 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Tue, 14 Nov 2006 13:47:19 +0000 Subject: [PATCH] don't download bad translations git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-83 --- autoboot | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/autoboot b/autoboot index be38ec7..a36fc75 100644 --- a/autoboot +++ b/autoboot @@ -25,6 +25,7 @@ package=sed # Translation Project URL, for the registry of all projects. TP_URL='http://www.iro.umontreal.ca/translation/registry.cgi?domain=' +TP_PO_URL='http://www.iro.umontreal.ca/translation/teams/PO/' # Ensure file names are sorted consistently across platforms. # Also, ensure diagnostics are in English, e.g., "wget --help" below. @@ -124,8 +125,10 @@ get_translations() { if (lang == "it") next ver = $2 - urlfmt = "" - printf "$WGET_COMMAND -O %s/%s.po 'http://www.iro.umontreal.ca/translation/teams/PO/%s/%s-%s.%s.po' &&\n", subdir, lang, lang, domain, ver, lang + printf "{ $WGET_COMMAND -O %s/%s.po '\'"$TP_PO_URL"'/%s/%s-%s.%s.po'\'' &&\n", subdir, lang, lang, domain, ver, lang + printf " msgfmt -c -o /dev/null %s/%s.po || {\n", subdir, lang + printf " echo >&2 '\'"$0"': omitting translation for %s'\''\n", lang + printf " rm -f %s/%s.po; }; } &&\n", subdir, lang } END { print ":" } ' | sh &&