Page 1 of 1

Support for setlocale() function

Posted: Thu Mar 02, 2006 9:15 pm
by mickecarlsson

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.


Posted: Fri Mar 03, 2006 5:04 pm
by zoneminder
I agree that it is a little inconvenient. The reason it is like this is that I don't actually like the default locale string that it gives in the UK. I guess I should make it optional though.