Page 1 of 1

date values: where from???

Posted: Wed 14. Jan 2004, 03:20
by Moozie
If I use {DATE_MEDIUM} I see some date values on my site. I was planning to translate those values (January, Jan, February, Feb, etc) into my own language. I thought the scripts reads them from include/inc_js/date.js. But if I change the variables in date.js nothing happens. It still shows the english month-names.

Where is phpwcms getting these names?

Posted: Wed 14. Jan 2004, 08:57
by Oliver Georgi
Set the date language in conf.template_default.inc.php - there are some languages included - also NL.

You can format as you like - it tries to emulate the date functionality by using the {DATE...} replacement tags.

Oliver

Posted: Wed 14. Jan 2004, 13:46
by Moozie
If I set:

Code: Select all

$template_default["news"]["date_language"]	= "NL"
then still the tag {DATE_LONG} will show english days. Also if I try "DE" instead of "NL"... english it is.

Posted: Wed 14. Jan 2004, 19:12
by Oliver Georgi
check that

Code: Select all

$template_default["date"]["language"]		= "DE"; 
Oliver