2 # Print the team's address (to stdout) and output additional instructions
6 catalog
="$3" # e.g. "pt_BR"
7 language
="$4" # e.g. "pt"
9 url
=`cat "$projectsdir/TP/teams.url"`
10 html
=`"$progdir/urlget" "$url" "$projectsdir/TP/teams.html"`
11 sed_addnl
='s,</tr>,</tr>\
13 address
=`echo "$html" | tr '\012' '|' | sed -e "$sed_addnl" | sed -n -e "s,^.*<td>$catalog</td>[^<>]*<td>[^|]*</td>[^<>]*<td><a href=\"\\([^\"]*\\)\">[^<>]*</a></td>.*\$,\\1,p" | sed 1q`
14 if test -n "$address"; then
16 mailto
:*) address
=`echo "$address" | sed -e 's,^mailto:,<,' -e 's,$,>,'` ;;
18 (echo "Please visit your translation team's homepage at"
19 echo " "`echo "$html" | tr '\012' '|' | sed -e "$sed_addnl" | sed -n -e "s,^.*<td>$catalog</td>[^<>]*<td><a href=\"\\([^\"]*\\)\">[^<>]*</a></td>.*\$,\\1,p" | sed 1q`
20 echo " http://www.iro.umontreal.ca/contrib/po/HTML/teams.html"
21 echo " http://www.iro.umontreal.ca/contrib/po/HTML/translators.html"
22 echo " http://www.iro.umontreal.ca/contrib/po/HTML/index.html"
23 echo "and consider joining your translation team's mailing list"
29 address
=`echo "$html" | tr '\012' '|' | sed -e "$sed_addnl" | sed -n -e "s,^.*<td>$language</td>[^<>]*<td>[^|]*</td>[^<>]*<td><a href=\"\\([^\"]*\\)\">[^<>]*</a></td>.*\$,\\1,p" | sed 1q`
30 if test -n "$address"; then
32 mailto
:*) address
=`echo "$address" | sed -e 's,^mailto:,<,' -e 's,$,>,'` ;;
34 (echo "A translation team exists for your language ($language) but not for"
35 echo "your local dialect ($catalog). You can either join the existing"
36 echo "translation team for $language or create a new translation team for $catalog."
38 echo "Please visit the existing translation team's homepage at"
39 echo " "`echo "$html" | tr '\012' '|' | sed -e "$sed_addnl" | sed -n -e "s,^.*<td>$language</td>[^<>]*<td><a href=\"\\([^\"]*\\)\">[^<>]*</a></td>.*\$,\\1,p" | sed 1q`
40 echo " http://www.iro.umontreal.ca/contrib/po/HTML/teams.html"
41 echo " http://www.iro.umontreal.ca/contrib/po/HTML/translators.html"
42 echo " http://www.iro.umontreal.ca/contrib/po/HTML/index.html"
43 echo "and consider joining the translation team's mailing list"
46 echo "If you want to create a new translation team for $catalog, please visit"
47 echo " http://www.iro.umontreal.ca/contrib/po/HTML/teams.html"
48 echo " http://www.iro.umontreal.ca/contrib/po/HTML/leaders.html"
49 echo " http://www.iro.umontreal.ca/contrib/po/HTML/index.html"
54 (echo "A translation team for your language ($language) does not exist yet."
55 echo "If you want to create a new translation team for $language"`test "$catalog" = "$language" || echo " or $catalog"`", please visit"
56 echo " http://www.iro.umontreal.ca/contrib/po/HTML/teams.html"
57 echo " http://www.iro.umontreal.ca/contrib/po/HTML/leaders.html"
58 echo " http://www.iro.umontreal.ca/contrib/po/HTML/index.html"