Wouldn't it be nice to have the language selected transparently by witangod using the HTTP1.1 content-negotiation header?

There would need to be a new configuration variable that listed the supported languages and a metatag to use the negotiated language.

We would still need to provide application logic to render the output appropriately, eg. <@INCLUDE file="mypath/inc.txt<@LANG>"> so I could select inc.txt.de for example. I would think that <@LANG> would default to null.

On Monday, January 24, 2005, at 05:26  PM, Phil Wade wrote:

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<transdate.tcf><transdate.xml>
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to