Date, Time Display / title information

Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Wed, 2003-05-21 12:37

Hi,

what about changing the method of displaying times and dates ?
This is how i use it in the Multilanguage Version of view_photo_properties.php

  echo _("File Upload Date") .":&amp;&amp; " . strftime("%d.%m %Y , %H:%M:%S" , $gallery->album->getUploadDate($index)) . "<br>";
        $itemCaptureDate = $gallery->album->getItemCaptureDate($index);
        echo _("Item Capture Date") . ":&amp;&amp; " . strftime("%d.%m.%Y, %H:%M:%S", mktime($itemCaptureDate['hours'], $itemCaptureDate['minutes'],$itemCaptureDate['seconds'], $itemCaptureDate['mon'],$itemCaptureDate['mday'],$itemCaptureDate['year']));

The Advantage is, that you can easier change the format and if you want you can use local settings.

And second.
What about adding the title attribute to images in navigation ?
Then Browser based on mozilla have tooltips, too.

Regards,

Jens

P.S.: I would send patches,but i only run this modifications in the ML

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Wed, 2003-05-21 23:57

We definitely need to integrate your ML work back into the Gallery core. I know that it's on Beckett's to-do list so it will happen, it's just a matter of when.

I think that it's also a good idea to add the title attribute to images in navigation. What do you think Beckett, Joan, John?

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Thu, 2003-05-22 10:07
bharat wrote:
We definitely need to integrate your ML work back into the Gallery core. I know that it's on Beckett's to-do list so it will happen, it's just a matter of when.

Yes... this would be wonderful. (Jens, I'm so impressed that you're keeping speed with Gallery CVS updates on the ML side...) In addition to localisable dates, it would be simple enough to add a timezone field to each user. The user could then select the appropriate timezone offset for his/her location (like what we have in this phpBB forum).

bharat wrote:
I think that it's also a good idea to add the title attribute to images in navigation. What do you think Beckett, Joan, John?

I think Joan checked this in already, am I correct?

-Beckett (

)

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Thu, 2003-05-22 10:11

Oops... I was thinking of the wrong "title". Yes... we can add the "title" attribute. Should we add "alt" tags while we're at it? (thus making the <img> tags XHTML compatible)

Added to the todo list. :)