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 » 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

User avatar
zoneminder
Site Admin
Posts: 5220
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder » Fri Mar 03, 2006 5:04 pm

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

Who is online

Users browsing this forum: No registered users and 4 guests