date values: where from???

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Moozie
Posts: 164
Joined: Sat 8. Nov 2003, 00:21
Location: Netherlands

date values: where from???

Post 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?
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post 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
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Moozie
Posts: 164
Joined: Sat 8. Nov 2003, 00:21
Location: Netherlands

Post 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.
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

check that

Code: Select all

$template_default["date"]["language"]		= "DE"; 
Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Post Reply