Re[2]: multi-language templates
Hello Robin, Wednesday, May 26, 2004, 2:19:12 AM, you wrote: RA> You would need to create Reply and Forward RA> message templates in a similar way. However, it shouldn't be too RA> difficult to do. Your proposition (mid:[EMAIL PROTECTED]) works very well. But for the moment I have it working only for New Messages. I am wondering what is the best way to use it also for Reply and Forward templates? Of course, it would be possible create three QT "SetLanguage" like the one you described: %SetLanguage1 calls the templates for New Messages. %SetLanguage2 calls the templates for Replies. %SetLanguage3 calls the templates for forwarding messages. And in the Account or Folder templates I could include %SetLanguage1 in the New Message template, %SetLanguage2 in the Reply template, etc... I didn't try it yet. But this should not be a problem. But I wonder whether there is no other solution? Something more elegant? Having one single chain of templates instead of three Does anybody have some ideas? -- Greetings from old Europe to Robin in Australia, Cyrille mailto:[EMAIL PROTECTED] [ the sig delimiter left TB correctly formatted! ] [ 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
Re[2]: multi-language templates
Hello Robin, Monday, May 24, 2004, 5:00:53 AM, you wrote: raoca> If you want to set a language for existing addressbook entries (as raoca> opposed to being able to set a language in a reply to a previously raoca> unknown sender), one approach would be to use the addressbook memo field Is there a (semi-)automated way to insert such a line in hundreds of AB entries? raoca> For recipients that don't use your standard language, Unfortunately I do not have any "standard" language. raoca> you could include a raoca> line in the memo field that looks like "language: FR" and include in your raoca> message template a macro that searches for such an entry in this field. I raoca> currently do this for setting read and delivery receipt requests, and for raoca> selecting which signatures to use for particular recipients. raoca> If you create the following QT, it will look for "language: XX" on a line raoca> by itself in the memo field of the first recipient of the message, and raoca> set the language of the message accordingly. Other information in the raoca> memo field (on other lines) will not affect the language setting. I find your proposition very helpful, and I would like to use it. But I am afraid of manually adding a line to all my AB entries. And since reality is more complicated than any theory I guess that I will forget sometimes to add this line to each new contact. That is why I dream about the following solution: When composing a message (new or reply), 1) your QT could get the language information from the AB memo field, 2) if there is no such info, the recipient's address domain extension is used to determine the language, 3) if this is not possible (".com" or Slovak using a Czech domain, etc.), in this case there should be a possibility to call manually a QT (as Miguel Urech described on Saturday in mid:[EMAIL PROTECTED]) And depending on this language information 1) %CharSet is defined, 2) %Language is defined and 3) different text templates are used Sounds good, doesn't it? - Who writes the code? (-: If I get this working I will uninstall MS Outlook from my machine. (-: -- Best regards, 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
Re[2]: multi-language templates
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, Cyrillemailto:[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