Format problem in Squishdot 1.0.0
Hi, I am using Squishdot 1.0.0. I have translated all of the content to Dutch, and I have two questions/problems: 1. I want the data format to be European like 31-12-2001 in stead of 12-31-2001.But it seems not possible to format the standard variable <dtml-var date_created> in European style. I tried <dtml-var date_created frm="%d/%m/%Y"> and several other compositions but I keep getting error messages, like "not alle converted" or key-error. Does anyone know how to format this Squishdot date? 2. When a message has been posted the user gets a message in English (You article has been posted). I like to translate this message to, but I don't know where to find it. Thanks Frank
On Thursday 05 April 2001 15:43, F. Zorge wrote:
Hi,
I am using Squishdot 1.0.0. I have translated all of the content to Dutch, and I have two questions/problems:
1. I want the data format to be European like 31-12-2001 in stead of 12-31-2001.But it seems not possible to format the standard variable <dtml-var date_created> in European style. I tried <dtml-var date_created frm="%d/%m/%Y"> and several other compositions but I keep getting error messages, like "not alle converted" or key-error. Does anyone know how to format this Squishdot date?
this may just be a stab in the dark, but if date_created is a string <dtml-var "ZopeTime(date_created')" fmt=%d/%m/%Y> would work (untested) -----------8<------------------- http://www.kedai.com.my/kk http://www.kedai.com.my/eZine http://www.zope.org/members/kedai How can I laugh tomorrow, if i can't even smile today.
Firstup, loose the HTML postings, they're not appreciated ;-)
1. I want the data format to be European like 31-12-2001 in stead of 12-31-2001.But it seems not possible to format the standard variable <dtml-var date_created> in European style. I tried <dtml-var date_created frm="%d/%m/%Y"> and several other compositions but I keep getting error messages, like "not alle converted" or key-error. Does anyone know how to format this Squishdot date?
Use <dtml-var "date_posted('%d/%m/%Y')">... Dunno what date_created is or why it's lying around :-S
2. When a message has been posted the user gets a message in English (You article has been posted). I like to translate this message to, but I don't know where to find it.
In SquishSite.py, sorry, but you'll have to hack that if you want to change it :-S If it's quick, I might make thata property in Squishdot 1.1. That's 'some time' off though :-S cheers, Chris
Hello F., Thursday, April 05, 2001, 1:43:28 PM, you wrote: FZ> <dtml-var date_created frm="%d/%m/%Y"> and several other <dtml-var "date_posted('%d/%m/%Y, %H:%M')"> FZ> 2. When a message has been posted the user gets a message in FZ> English (You article has been posted). I like to translate this Run text search for the string in your_zope_path/lib/python/products/squishdot/*.py. -- Best regards, Alexander N. Chelnokov Ural Scientific Institute of Traumatology and Orthopaedics 7, Bankovsky str. Ekaterinburg 620014 Russia ICQ: 25640913
participants (4)
-
Alexander Chelnokov -
bak -
Chris Withers -
F. Zorge