summaryrefslogtreecommitdiff
path: root/modules/archive
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-02-08 17:07:07 +0000
committerDries Buytaert <dries@buytaert.net>2004-02-08 17:07:07 +0000
commitbc8057df3887c9af93cec003a26926f69206a5c6 (patch)
tree447192a10807bb05272aa28e0d243c26276e85ff /modules/archive
parent1afcfd1007da05906b590bfbdbaeddbb5c1c1504 (diff)
downloadbrdo-bc8057df3887c9af93cec003a26926f69206a5c6.tar.gz
brdo-bc8057df3887c9af93cec003a26926f69206a5c6.tar.bz2
- Patch #5613 by Goba: fixed translation issue with archive module and removed
some locale module code that is now part of extractor.php.
Diffstat (limited to 'modules/archive')
-rw-r--r--modules/archive/archive.module8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/archive/archive.module b/modules/archive/archive.module
index 5bdc1b34d..175534d9f 100644
--- a/modules/archive/archive.module
+++ b/modules/archive/archive.module
@@ -83,10 +83,10 @@ function archive_calendar($original = 0) {
$output .= "\n<!-- calendar -->\n";
$output .= "<div class=\"calendar\">";
$output .= "<table>\n";
- $output .= " <tr><td colspan=\"7\" class=\"header-month\">". l("&laquo;", "archive/". date("Y/m/d", $prev)) ." ". t(date("F", $requested)) . date(" Y", $requested) ." ". ($nextmonth <= time() ? l("&raquo;", "archive/". date("Y/m/d", $next)) : "&nbsp;") ."</td></tr>\n";
+ $output .= " <tr><td colspan=\"7\" class=\"header-month\">". l("&laquo;", "archive/". date("Y/m/d", $prev)) ." ". format_date($requested, "custom", "F") . date(" Y", $requested) ." ". ($nextmonth <= time() ? l("&raquo;", "archive/". date("Y/m/d", $next)) : "&nbsp;") ."</td></tr>\n";
// First day of week (0 => Sunday, 1 => Monday, ...)
- $weekstart = variable_get("default_firstday", 0);
+ $cday = $weekstart = variable_get("default_firstday", 0);
// Last day of week
($weekstart - 1 == -1) ? $lastday = 6 : $lastday = $weekstart - 1;
@@ -95,8 +95,10 @@ function archive_calendar($original = 0) {
$firstcolumn = mktime(0, 0, 0, 3, 20 + $weekstart, 1994);
$output .= " <tr class=\"header-week\">";
+ $days = array(t('Su'), t('Mo'), t('Tu'), t('We'), t('Th'), t('Fr'), t('Sa'));
for ($i = 0; $i < 7; $i++) {
- $output .= "<td>". t(substr(ucfirst(date("l", $firstcolumn + $i * 86400)), 0, 2)) ."</td>";
+ $output .= "<td>". $days[$cday] . "</td>";
+ $cday = ($cday < 6 : $cday+1 : 0);
}
$output .= "</tr>\n";