Problem News module date multilanguage

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
Zigintas

Problem News module date multilanguage

Post 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) ?
cyberman

Re: Problem News module date multilanguage

Post 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';
Locked

Return to “CMSMS Core”