Hello Roelof, Saturday, May 22, 2004, 8:13:30 PM, you wrote:
C>> My question: I would like TB to choose automatically C>> * the right language template, according to the domain extension C>> of the recipients address. (But what should happen in case of .com C>> or .net domains?) RO> Can be done with a series of nested if macros. But what would you do RO> with an Hungarian with an address at gmx.de I agree that this is not a perfect criteria, but what you propose below is not much better... RO> Better would be to do something with your address book (AB). You could RO> either use AB templates (templates associated group contacts in your RO> AB or associated with AB groups) or consequently insert the Country RO> field in the AB for every contact. RO> This will help you pick the language automatically for everybody in RO> your AB. I am not very keen on manually inserting the country field in the AB for my 800 contacts. Because this solution is not much better than analyzing the email address. It is true that in many cases it is possible to say "country = language" , but Central Europe is not the Netherlands. In most of the countries there are several official languages (Hungarians in Slovakia, Germans in Romania, etc.). As far as I know, language information does not belong to the Internet standard of vCards which TB uses for his address book. If there would be something like that, this would be of course the cleanest solution. C>> (Or does anybody have a better idea what could be the criteria for C>> the choice?) RO> The easiest way to achieve this, is via AB group templates. Create AB RO> groups, call them Russian, Hungarian, Dutch, English, Swahili (oops, RO> that's not European), whatever. RO> Add your contacts to the right language group. RO> Associate the language templates with the groups and you're done. RO> You pick an address and TB will pick the language. Inconvenience: AB groups need continuos manual maintenance. Each old and new contact needs to be sorted in the language groups. I still did not give up the idea that it is possible to write some template code which determines the right language in most of the cases. And in the cases in which this does not work (what is unavoidable with either of the proposed solutions) the only thing to do is to call the template manually. -- Groetjes, Cyrille mailto:[EMAIL PROTECTED] [ TB! 2.10.01, Windows ME 4.90 Build 3000, Pentium 233Mhz with 95MB ] ________________________________________________ Current version is 2.10.03 | 'Using TBUDL' information: http://www.silverstones.com/thebat/TBUDLInfo.html

