No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / projects / GNOME / team-address
blobed35fa0e31134b5ca8b3358b2fefa2a71ebc7030
1 #!/bin/sh
2 # Print the team's address (to stdout) and output additional instructions
3 # (to stderr).
4 projectsdir="$1"
5 progdir="$2"
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...
13 case "$catalog" in
14 af) english=Afrikaans;;
15 ar) english=Arabic;;
16 az) english="Azerbaijani turkish";;
17 eu) english=Basque;;
18 bs) english=Bosnian;;
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;;
23 ca) english=Catalan;;
24 zh_CN) english="Chinese (Team in China)";;
25 zh_TW) english="Chinese (Team in Taiwan)";;
26 cs) english=Czech;;
27 da) english=Danish;;
28 nl) english=Dutch;;
29 et) english=Estonian;;
30 fi) english=Finnish;;
31 fr) english=French;;
32 gl) english=Galician;;
33 de) english=German;;
34 el) english=Greek;;
35 he) english=Hebrew;;
36 hi) english=Hindi;;
37 hu) english=Hungarian;;
38 id) english=Indonesian;;
39 ga) english=Irish;;
40 it) english=Italian;;
41 ja) english=Japanese;;
42 ko) english=Korean;;
43 lv) english=Latvian;;
44 lt) english=Lithuanian;;
45 ml) english=Malayalam;;
46 mt) english=Maltese;;
47 mr) english=Marathi;;
48 no) english=Norwegian;;
49 fa) english=Persian;;
50 pl) english=Polish;;
51 pt) english=Portuguese;;
52 ro) english=Romanian;;
53 ru) english=Russian;;
54 sk) english=Slovak;;
55 sl) english=Slovenian;;
56 es) english=Spanish;;
57 sv) english=Swedish;;
58 ta) english=Tamil;;
59 te) english=Telugu;;
60 th) english=Thai;;
61 tr) english=Turkish;;
62 uk) english=Ukrainian;;
63 vi) english=Vietnamese;;
64 # ??) english=Walloon;;
65 cy) english=Welsh;;
66 *) english=;;
67 esac
68 if test -n "$english"; then
69 (echo "Please consider joining your translation team, and visit"
70 echo " $url"
71 echo " http://developer.gnome.org/projects/gtp/"
72 ) 1>&2
73 sed_addnl='s,</tr>,</tr>\
74 ,g'
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.
77 else
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"
80 echo " $url"
81 echo " http://developer.gnome.org/projects/gtp/"
82 echo "and decide whether you want to create a new translation team."
83 ) 1>&2
84 address=
86 exit 0