Support for setlocale() function
Posted: Thu Mar 02, 2006 9:15 pm
Hi,
ZoneMinder does support different languages but the present version does not support the setlocale() function.
For the date on the mainpage it uses date( "D jS M, g:ia" ).
It would be nice to have this changed to use setlocale(LC_TIME, $locale); where $locale could be set in the configuration to proper format, example:
$locale = 'swedish';
//Swedish format: Tis 2 mar, 21:35
$local_format = '%a %e %b, %H:%M';
setlocale(LC_TIME, $locale);
and then use strftime to display the values.
Mikael
ZoneMinder does support different languages but the present version does not support the setlocale() function.
For the date on the mainpage it uses date( "D jS M, g:ia" ).
It would be nice to have this changed to use setlocale(LC_TIME, $locale); where $locale could be set in the configuration to proper format, example:
$locale = 'swedish';
//Swedish format: Tis 2 mar, 21:35
$local_format = '%a %e %b, %H:%M';
setlocale(LC_TIME, $locale);
and then use strftime to display the values.
Mikael