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/GNOME/teams.url"`
10 html
=`"$progdir/urlget" "$url" "$projectsdir/GNOME/teams.html"`
11 # The HTML page doesn't contain the languages with ISO 639 codes.
12 # So we have to translate ourselves...
14 af
) english
=Afrikaans
;;
16 az
) english
="Azerbaijani turkish";;
19 pt_BR
) english
="Brazilian Portug";; # someday they'll fix the mistake
20 bg) english
=Bulgarian
;;
21 en_GB
) english
="Commonwealth English";;
22 hr
) english
=Croatian
;;
24 zh_CN
) english
="Chinese (Team in China)";;
25 zh_TW
) english
="Chinese (Team in Taiwan)";;
29 et
) english
=Estonian
;;
32 gl
) english
=Galician
;;
37 hu
) english
=Hungarian
;;
38 id
) english
=Indonesian
;;
41 ja
) english
=Japanese
;;
44 lt
) english
=Lithuanian
;;
45 ml
) english
=Malayalam
;;
48 no
) english
=Norwegian
;;
51 pt
) english
=Portuguese
;;
52 ro
) english
=Romanian
;;
55 sl
) english
=Slovenian
;;
62 uk
) english
=Ukrainian
;;
63 vi
) english
=Vietnamese
;;
64 # ??) english=Walloon;;
68 if test -n "$english"; then
69 (echo "Please consider joining your translation team, and visit"
71 echo " http://developer.gnome.org/projects/gtp/"
73 sed_addnl
='s,</tr>,</tr>\
75 address
=`echo "$html" | tr '\012' '|' | sed -e "$sed_addnl" | sed -n -e "s,^.*<td.*$english.*</td>.*<td.*</td>.*<td.*<a href=\"\\([^\"]*\\)\">.*</td>.*\$,\\1,p"`
76 # address can be empty or contain 1 or more space separated URLs.
78 (echo "A translation team for your "`if test "$catalog" = "$language"; then echo "language ($language)"; else echo "local dialect ($catalog)"; fi`
79 echo "may not exist yet. Please visit"
81 echo " http://developer.gnome.org/projects/gtp/"
82 echo "and decide whether you want to create a new translation team."