Hi,
First, thank you very much for this software. Thank you also for the new release!!
I would like to change the date format (in french) of zenphoto but I don't know how to procede. I know that the lines which should be modified are the following :
`
function getSearchDate($format="F Y") {
if (in_context(ZP_SEARCH)) {
global $_zp_current_search;
$date = $_zp_current_search->getSearchDate();
if (empty($date)) { return ""; }
if ($date == '0000-00') { return "no date"; };
$dt = strtotime($date."-01");
return date($format, $dt);
}
return false;
}
`
- and -
`
function printAllDates($class="archive", $yearid="year", $monthid="month") {
if (!empty($class)){ $class = "class=\"$class\""; }
if (!empty($yearid)){ $yearid = "id=\"$yearid\""; }
if (!empty($monthid)){ $monthid = "id=\"$monthid\""; }
$datecount = getAllDates();
$lastyear = "";
echo "n<ul $class>n";
while (list($key, $val) = each($datecount)) {
$nr++;
if ($key == '0000-00-01') {
$year = "no date";
$month = "";
} else {
$dt = date('Y-F', strtotime($key));
$year = substr($dt, 0, 4);
$month = substr($dt, 5);
}
if ($lastyear != $year) {
$lastyear = $year;
if($nr != 1) { echo "</ul>n</li>n";}
echo "<li $yearid>$yearn<ul $monthid>n";
}
echo "[*]<a href=\"index.php?p=search&date=".substr($key, 0, 7)."\">$month ($val)</a>n";
}
echo "</ul>n</li>n</ul>n";
}
`
In fact, I would like change the months. In example, "January" in "Janvier", "Februar" in "Février", "March" in "Mars.
Has someone an idea?
Thanks.
Sincerely,
Tom.