Richard,
It is not exactly what you want but it is a good starting point.  It will be
quick to use, modify and extend.  It takes a couple of ms to translate and
we use it as a custom tag.  It is good for small translations.

Add the tcf to your site and add the transdate.xml file to the custom tags
directory of the witango server.


We call it like this.

<@TRANSDATE
    DATE="<@CURRENTTIMESTAMP FORMAT='datetime:%A, %B %d, %Y'>"
    LANGUAGE="FR"
    >

To add more words to translate just extend the array.

Phil



> From: "Richard Wan" <[EMAIL PROTECTED]>
> Date: 25 January 2005 10:37:58 AM
> To: <[email protected]>
> Subject: RE: Witango-Talk: Formatting Date In French
> Reply-To: [email protected]
> 
> Its running on MS. It's going to be a bilingual CMS and the user will
> be
> able to toggle between languages. The date is just one of those things
> that is static but still needs to be in both languages when toggled.
> 
> -----Original Message-----
> From: Bill Conlon [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 24, 2005 6:20 PM
> To: [email protected]
> Subject: Re: Witango-Talk: Formatting Date In French
> 
> On linux, you can set the LANG environment variable for the witango
> process.
> 
> On Monday, January 24, 2005, at 02:58  PM, Richard Wan wrote:
> 
>> Hi all,
>> 
>> �
>> 
>> I am guessing that there is no formatting attribute to format
>> <@CURRENTDATE FORMAT="%A %B %d, %Y"> into French without physically
>> doing a translation?
>> 
>> �
>> 
>> Basically I want �Monday January 24, 2005� to translate to �Lundi le
>> 24 de janvier, 2005� or something to that effect (excuse my bad >
>> french)
>> 
>> �
>> 
>> I am hoping I don�t need to do what I think I have to do.
>> 
>> �
>> 
>> Anyone have a quick way?
>> 
>> �
>> 
>> Thanks,�
>> 
>> Richard


________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Attachment: transdate.tcf
Description: Binary data

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE TAGPACKAGES SYSTEM "ctags.dtd" >
<tagpackages Version="0b1">
        <packagedef id="transdatev1.0">
                <author>Phil Wade</author>
                <version>1.0</version>
                <copyright>� Witango Technologies Pty Ltd</copyright>
                <packagedesc>Date Translater</packagedesc>
                <objects>
                        <objectdef id="transdate_obj" type="TCF">
                                <name>transdate.tcf</name>
                                <varname>transdate_obj</varname>
                                <scope>request</scope>
                        </objectdef>
                </objects>      

                <tags>  
                        <tagdef name="TransDate" objectid="transdate_obj">
                                <method>TransDate</method>
                                <encoding></encoding>
                                <tagdesc></tagdesc>                             

                                <attrdef name="date" required="TRUE">
                                        <defaultvalue></defaultvalue>
                                        <attrdefdesc></attrdefdesc>
                                </attrdef>                      

                                <attrdef name="language" required="TRUE">
                                        <defaultvalue></defaultvalue>
                                        <attrdefdesc></attrdefdesc>
                                </attrdef>
                        </tagdef>
                </tags>
        </packagedef>
</tagpackages>

Reply via email to