On Thu, May 18, 2006 at 09:43:58AM +0100, Alastair McKinstry wrote: > Hi Robert, > > Sorry about the delay in replying: my phone has been down at home for > two weeks > now, and I'm waiting for the telco to fix it so I can get back to > Debian/iso-codes stuff.
No problem :) > What I meant to ask is how do you expect to use this data from a > program / API > point of view (ie pseudocode, etc.) My intention is to use it in localechooser. I have this patch prepared. The idea is to grep for "[EMAIL PROTECTED]@ ($country)" in the tab file, and if that is found use it for the short list instead of the normal name. Btw, since it affects localechooser I think Christian would like to know about it. I'm CCing him. Christian, I suggest you read the log in #360128 first, my proposal is explained in detail here. diff -ur localechooser-1.12.old/mkshort localechooser-1.12/mkshort --- localechooser-1.12.old/mkshort 2006-04-17 20:09:44.000000000 +0200 +++ localechooser-1.12/mkshort 2006-04-25 15:58:01.000000000 +0200 @@ -39,7 +39,12 @@ IFS="$OLD_IFS" if [ "$2" ]; then if [ "$lang" != "en" ] ; then - translation=$( (grep "^$2 " $tabfile 2>/dev/null || true) | sed -e 's/^.* //') + # when "regional name" exists, use it + translation=$( (grep "[EMAIL PROTECTED]@ ($2) " $tabfile 2>/dev/null || true) | sed -e 's/^.* //') + if ! [ "$translation" ]; then + # otherwise use standard translation + translation=$( (grep "^$2 " $tabfile 2>/dev/null || true) | sed -e 's/^.* //') + fi if [ "$translation" ]; then echo -e "$1\t$translation" >> $outfile else -- Robert Millan -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]