Page 1 of 1

Problem News module date multilanguage

Posted: Sat Jun 16, 2007 8:57 am
by Zigintas
Hi,

i have problem News module (CMS1.0.7) date multilanguage...


1) Add article -->
Post Date: month day year time...
Status: Published
Start Date: month day year time...
End Date: month day year time...

my need:
Post Date: year month day time...
Status: Published
Start Date: year month day time...
End Date: year month day time...

where change?

2) how (or where) change month name and status in my language (lt_LT) ?

Re: Problem News module date multilanguage

Posted: Sat Jun 16, 2007 12:33 pm
by cyberman
Zigintas wrote: where change?
If you make a look in used template for that (/news/templates/editarticle.tpl) you will found

Code: Select all

{html_select_date prefix=$postdateprefix time=$postdate start_year=2000 end_year=2010}
Command {html_select_date} comes from Smarty and can be found in lib/smarty/plugins. For options you can look here

http://smarty.php.net/manual/en/languag ... t.date.php
2) how (or where) change month name and status in my language (lt_LT) ?
Value of month name comes from your server. Please look there. Have you set frontend language in config.php? Maybe including of a setlocale command in include.php can help.

And status is currently not localized. You can do it by yourself in action.addarticle.php line 141 and 142

Code: Select all

	$statusdropdown['Draft'] = 'draft';
	$statusdropdown['Published'] = 'published';