annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/share/gettext/projects/KDE/team-address @ 68:5028fdace37b

planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author jpayne
date Tue, 18 Mar 2025 16:23:26 -0400
parents
children
rev   line source
jpayne@68 1 #!/bin/sh
jpayne@68 2 #
jpayne@68 3 # Copyright (C) 2001 Free Software Foundation, Inc.
jpayne@68 4 # Written by Bruno Haible <bruno@clisp.org>, 2001.
jpayne@68 5 #
jpayne@68 6 # This program is free software: you can redistribute it and/or modify
jpayne@68 7 # it under the terms of the GNU General Public License as published by
jpayne@68 8 # the Free Software Foundation; either version 3 of the License, or
jpayne@68 9 # (at your option) any later version.
jpayne@68 10 #
jpayne@68 11 # This program is distributed in the hope that it will be useful,
jpayne@68 12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
jpayne@68 13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
jpayne@68 14 # GNU General Public License for more details.
jpayne@68 15 #
jpayne@68 16 # You should have received a copy of the GNU General Public License
jpayne@68 17 # along with this program. If not, see <https://www.gnu.org/licenses/>.
jpayne@68 18
jpayne@68 19 # Print the team's address (to stdout) and output additional instructions
jpayne@68 20 # (to stderr).
jpayne@68 21
jpayne@68 22 projectsdir="$1"
jpayne@68 23 progdir="$2"
jpayne@68 24 catalog="$3" # e.g. "pt_BR"
jpayne@68 25 language="$4" # e.g. "pt"
jpayne@68 26
jpayne@68 27 url=`cat "$projectsdir/KDE/teams.url"`
jpayne@68 28 html=`"$progdir/urlget" "$url" "$projectsdir/KDE/teams.html"`
jpayne@68 29 # The HTML page says they are "presently switching from the 2-letter codes
jpayne@68 30 # to the 3-letter codes". So it is safest to use the English name and
jpayne@68 31 # translate ourselves...
jpayne@68 32 case "$catalog" in
jpayne@68 33 af) english=Afrikaans;;
jpayne@68 34 ar) english=Arabic;;
jpayne@68 35 az) english=Azerbaijani;;
jpayne@68 36 bg) english=Bulgarian;;
jpayne@68 37 bn) english=Bengali;;
jpayne@68 38 bo) english=Tibetan;;
jpayne@68 39 br) english=Breton;;
jpayne@68 40 bs) english=Bosnian;;
jpayne@68 41 ca) english=Catalan;;
jpayne@68 42 cs) english=Czech;;
jpayne@68 43 cy) english=Welsh;;
jpayne@68 44 da) english=Danish;;
jpayne@68 45 de) english=German;;
jpayne@68 46 el) english=Greek;;
jpayne@68 47 en_GB) english="British English";;
jpayne@68 48 eo) english=Esperanto;;
jpayne@68 49 es) english=Spanish;;
jpayne@68 50 et) english=Estonian;;
jpayne@68 51 eu) english=Basque;;
jpayne@68 52 fa) english=Farsi;;
jpayne@68 53 fi) english=Finnish;;
jpayne@68 54 fo) english=Faroese;;
jpayne@68 55 fr) english=French;;
jpayne@68 56 ga) english=Irish;;
jpayne@68 57 gl) english=Gallegan;;
jpayne@68 58 gu) english=Gujarati;;
jpayne@68 59 he) english=Hebrew;;
jpayne@68 60 hi) english=Hindi;;
jpayne@68 61 hr) english=Croatian;;
jpayne@68 62 hu) english=Hungarian;;
jpayne@68 63 id) english=Indonesian;;
jpayne@68 64 is) english=Icelandic;;
jpayne@68 65 it) english=Italian;;
jpayne@68 66 ja) english=Japanese;;
jpayne@68 67 km) english=Khmer;;
jpayne@68 68 ko) english=Korean;;
jpayne@68 69 ku) english=Kurdish;;
jpayne@68 70 lt) english=Lithuanian;;
jpayne@68 71 lv) english=Latvian;;
jpayne@68 72 mi) english=Maori;;
jpayne@68 73 mk) english=Macedonian;;
jpayne@68 74 mr) english=Marathi;;
jpayne@68 75 mt) english=Maltese;;
jpayne@68 76 nl) english=Dutch;;
jpayne@68 77 no) english="Norwegian (Bokm";;
jpayne@68 78 nn) english="Norwegian (Nynorsk)";;
jpayne@68 79 oc) english=Occitan;;
jpayne@68 80 pl) english=Polish;;
jpayne@68 81 pt) english=Portuguese;;
jpayne@68 82 pt_BR) english="Brazilian Portuguese";;
jpayne@68 83 ro) english=Romanian;;
jpayne@68 84 ru) english=Russian;;
jpayne@68 85 sk) english=Slovak;;
jpayne@68 86 sl) english=Slovenian;;
jpayne@68 87 sr) english=Serbian;;
jpayne@68 88 sv) english=Swedish;;
jpayne@68 89 ta) english=Tamil;;
jpayne@68 90 tg) english=Tajik;;
jpayne@68 91 th) english=Thai;;
jpayne@68 92 tr) english=Turkish;;
jpayne@68 93 uk) english=Ukrainian;;
jpayne@68 94 vi) english=Vietnamese;;
jpayne@68 95 # ??) english=Walloon;;
jpayne@68 96 xh) english=Xhosa;;
jpayne@68 97 zh_CN) english="Simplified Chinese";;
jpayne@68 98 zh_TW) english="Traditional Chinese";;
jpayne@68 99 *) english=;;
jpayne@68 100 esac
jpayne@68 101 if test -n "$english"; then
jpayne@68 102 (echo "Please consider joining your translation team, and visit"
jpayne@68 103 sed_addnl='s,</TR>,</TR>\
jpayne@68 104 ,g'
jpayne@68 105 anchor=`echo "$html" | tr '\012' '|' | sed -e "$sed_addnl" | sed -n -e 's,^.*<TR.*<A NAME="\([^"]*\)">.*>'"$english"'[^<>]*team<.*</TR>$,\1,p'`
jpayne@68 106 if test -n "$anchor"; then
jpayne@68 107 echo " $url#$anchor"
jpayne@68 108 fi
jpayne@68 109 echo " $url"
jpayne@68 110 echo " https://l10n.kde.org/"
jpayne@68 111 ) 1>&2
jpayne@68 112 address1=`echo "$html" | tr '\012' '|' | sed -n -e 's,^.*>'"$english"'[^<>]*team<\(.*\)$,\1,p' | sed -e "$sed_addnl" | sed -e 2q -e 1d | sed -n -e 's,^.*mailing list\(.*\)$,\1,p' | sed -e 's,</LI>.*,,' | sed -e 's,</A>.*,</A>,' | sed -n -e 's,^.*HREF="\([^"]*\)">[^<>]*</A>.*$,\1,p'`
jpayne@68 113 case "$address1" in
jpayne@68 114 mailto:*) address1=`echo "$address1" | sed -e 's,^mailto:,<,' -e 's,$,>,'` ;;
jpayne@68 115 esac
jpayne@68 116 address1=`echo "$address1" | sed -e 's,-request@,@,'`
jpayne@68 117 address2=`echo "$html" | tr '\012' '|' | sed -n -e 's,^.*>'"$english"'[^<>]*team<\(.*\)$,\1,p' | sed -e "$sed_addnl" | sed -e 2q -e 1d | sed -n -e 's,^.*web site\(.*\)$,\1,p' | sed -e 's,</LI>.*,,' | sed -e 's,</A>.*,</A>,' | sed -n -e 's,^.*HREF="\([^"]*\)">[^<>]*</A>.*$,\1,p'`
jpayne@68 118 if test -n "$address1" && test -n "$address2"; then
jpayne@68 119 address="$address1 $address2"
jpayne@68 120 else
jpayne@68 121 address="$address1$address2"
jpayne@68 122 fi
jpayne@68 123 # address can be empty or contain 1 or more space separated URLs.
jpayne@68 124 else
jpayne@68 125 (echo "A translation team for your "`if test "$catalog" = "$language"; then echo "language ($language)"; else echo "local dialect ($catalog)"; fi`
jpayne@68 126 echo "may not exist yet. Please visit"
jpayne@68 127 echo " $url"
jpayne@68 128 echo " https://l10n.kde.org/"
jpayne@68 129 echo "and decide whether you want to create a new translation team."
jpayne@68 130 ) 1>&2
jpayne@68 131 address=
jpayne@68 132 fi
jpayne@68 133 exit 0