I have been making a Norwegian theme for zenphoto, but I can't find anywhere to translate "Date" and "Image Info". The output for dates on images and albums is now: "Date: April 25th, 2008". Is it possible to print it out like this: "Dato: 25.04.2008" ? The PHP I am using looks like this: <?php printAlbumTitle(); ?></h3> <?php printAlbumDate(); ?> . Also I can't find anywhere to define a translation for "Image Info" - the button that shows EXIF information in a new window.
Comments
Edit: And will it be easy to update? I'm soon finished with the site and will be 'delivering' onto the owner, so if it's a hassle then it probably can't be done.
Regarding the date I forgot that you of course already can change the display without that now, please take a look here:
http://www.zenphoto.org/documentation-official/zenphoto/_template-functions.php.html#functiongetImageDate
http://www.zenphoto.org/documentation-official/zenphoto/_template-functions.php.html#functiongetAlbumDate
See a php manual for the exact use of these date formats. The next version will use sligthly different ones because of the gettext changes. You can already preview them in the nightly, which already has an option for the date format in the admin.
For "image info" you would have to search template-functions.php, I guess (don't know right now where that is).
<?php printAlbumDate("Dato: d.m.Y"); ?>
All it does it place itself in front of the original date, like so:
Dato: d.m.YDecember 3rd, 2006
I understand that d.m.Y isn't treated as date formatting because it's in the string and I didn't somehow declare that it's supposed to format the date.
Can you give me an example?