Support for setlocale() function

Anything you want added or changed in future versions of ZoneMinder? Post here and there's a chance it will get in! Search to make sure it hasn't already been requested.
Post Reply
mickecarlsson
Posts: 8
Joined: Sat Feb 25, 2006 7:14 pm

Support for setlocale() function

Post by mickecarlsson »

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
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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.
Phil
Post Reply