From: <ji...@us...> - 2008-12-26 19:32:45
|
Update of /cvsroot/phpicalendar/phpicalendar/functions In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv30708/functions Modified Files: date_functions.php Log Message: update danish Index: date_functions.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/date_functions.php,v retrieving revision 1.42 retrieving revision 1.43 diff -C2 -d -r1.42 -r1.43 *** date_functions.php 26 Dec 2008 05:54:46 -0000 1.42 --- date_functions.php 26 Dec 2008 19:32:41 -0000 1.43 *************** *** 108,120 **** $month = date("n", $timestamp)-1; $day = date("j", $timestamp); ! $dayofweek = date("w", $timestamp); ! ! $date = str_replace('%Y', $year, $format); ! $date = str_replace('%e', $day, $date); ! $date = str_replace('%B', $monthsofyear_lang[$month], $date); ! $date = str_replace('%b', $monthsofyearshort_lang[$month], $date); ! $date = str_replace('%A', $daysofweek_lang[$dayofweek], $date); ! $date = str_replace('%a', $daysofweekshort_lang[$dayofweek], $date); ! return $date; --- 108,122 ---- $month = date("n", $timestamp)-1; $day = date("j", $timestamp); ! $dayofweek = date("w", $timestamp); ! $replacements = array( ! '%Y' => $year, ! '%e' => $day, ! '%B' => $monthsofyear_lang[$month], ! '%b' => $monthsofyearshort_lang[$month], ! '%A' => $daysofweek_lang[$dayofweek], ! '%a' => $daysofweekshort_lang[$dayofweek], ! '%d' => sprintf("%02d", $day) ! ); ! $date = str_replace(array_keys($replacements), array_values($replacements), $format); return $date; |