-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Daniel,

On 30 June 2001 at  17:08:09 +0300 (which was 15:08 where I live)
Daniel Nicorici wrote to [EMAIL PROTECTED] and made these
points:

DN> I would like to send emails with %DATE and %TIME (and others
DN> macros) in other languages, depending on the person to whom I want
DN> to send the email

<snip>

DN> So, How do I do this ?    =:)

You can do this using "intelligent" macros and quick template
combinations. The scope of the full answer is, however, too technical
for TBUDL and should really be taken up on TBTECH.

The gist of it is to write a quick template for each language which
will give the required translated date/time and call them DT_DE,
DT_SE, DT_ES, DT_FR etc. Then you simply use %QINCLUDE="DT_FR" in the
address book templates for your French correspondents, etc.

For example, a macro to translate the day of the week can be
constructed using the new %IF macro to translate the %DOW result like
this:

     %IF:"%DOW"="Monday":"Lundi"%-
     %IF:"%DOW"="Tuesday":"Mardi"%-
     %IF:"%DOW"="Wednesday":"Mercredi"%-
     %IF:"%DOW"="Thursday":"Jeudi"%-
     %IF:"%DOW"="Friday":"Vendredi"%-
     %IF:"%DOW"="Saturday":"Samedi"%-
     %IF:"%DOW"="Sunday":"Dimanche":%-

Translating the month name is a lot trickier and would involve
embedded regular expressions to extract the month name from the date
string.

- --
Cheers -- .\\arck D. Pearlstone -- List moderator and fellow end user
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\ BrainStorm - free thinking - www: http://www.brainstormsw.com /
 \ PGP Key ID: 0x929DCDA0  |  www: http://www.silverstones.com /

SB! v1.53d/iKey1000 55238-48F0B on Windows NT 5.0.2195 Service Pack 1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (MingW32)
Comment: GPG Sealed for freshness

iD8DBQE7PeUVOeQkq5KdzaARAvBKAJ4g7W/dOh2mk3mJ0nHPWGodvKGYzACffGWD
xX46qPfE6yxeDA+ZvjvxZr8=
=L874
-----END PGP SIGNATURE-----

-- 
______________________________________________________
Archives   : <http://tbudl.thebat.dutaint.com>
Moderators : <mailto:[EMAIL PROTECTED]>
TBTech List: <mailto:[EMAIL PROTECTED]>
Unsubscribe: <mailto:[EMAIL PROTECTED]>

You are subscribed as : [email protected]


Reply via email to