From 7fa416a7fd085020b293bfbcd86b8f4c5d1e15cb Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 19 Apr 2002 13:27:25 +0000 Subject: [PATCH] Helper script to ask for translation updates --- scripts/mail-to-translators | 64 +++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100755 scripts/mail-to-translators diff --git a/scripts/mail-to-translators b/scripts/mail-to-translators new file mode 100755 index 000000000..f3bbbd0fd --- /dev/null +++ b/scripts/mail-to-translators @@ -0,0 +1,64 @@ +#!/bin/sh +# mail a compressed version of the current translation to the Last-Translator +# + +SENDMAIL="/usr/sbin/sendmail" + +for file in *.po; do + addr=$(awk '/Last-Translator:/ { printf "%s", $0; exit 0}' $file | sed 's/.*\(<.*>\).*/\1/') + ll=$(basename $file .po) + + if ! msgfmt -vc $file 2>&1| egrep -q 'fuzzy|untranslated|error'; then + echo "$file: okay" >&2 + continue; + fi + + if [ -z "$addr" ]; then + echo "$file: no translator known" >&2 + continue; + fi + + echo "$file: sending to $addr" + ( cat <&1 | head) + +If you are not able to continue the translation work, I suggest to +pass this message on to another translator and drop me a short note. + +Thanks, + + Werner + + +--=-=-= +Content-Type: application/octet-stream +Content-Disposition: attachment; filename=gnupg-${file}.gz +Content-Transfer-Encoding: base64 + +EOF + +gzip <$file | mimencode + +echo "" +echo "--=-=-=--" +echo "" + ) | $SENDMAIL -oi "$addr" + +done