Forum OpenACS Q&A: Re: Need help for german translation of lars-blogger

Posted by Joel Aufrecht on
Look at item 7 in
If you end up internationalizing the date-handling in lars-blogger, which would be a nice first step, please submit patches.
Posted by Thomas Rathjen on
thank you for the help!

all works fine, except the translation of the months.date_pretty output.

I don´t know what goes wrong, but if I change the code as described in the documentation I get an error message.

what I have done:

add to blog-months.tcl
set months(date_pretty) [lc_time_fmt $months(date_ansi)]

change in blog-months-postgresql.xql
to_char(date_trunc('month', entry_date), 'fmMonthfm YYYY') as date_pretty,


to_char(date_trunc('month', entry_date), 'YYYY-MM-DD HH24:MI:SS') as date_ansi,

I get this error message

"Error in include template "/var/lib/aolserver/com4biz/packages/lars-blogger/www/blog-months": can't read "months(date_ansi)": no such variable"

Posted by Dirk Gomez on
Do you pass down the variable to blog-months? And did you look at blog-months as well whether you need to change things there as well?
Posted by Lars Pind on
Did you reload