aboutsummaryrefslogtreecommitdiffstats
path: root/sidebar.php
diff options
context:
space:
mode:
authorjwangen <jwangen>2002-10-03 04:36:10 +0000
committerjwangen <jwangen>2002-10-03 04:36:10 +0000
commit55e814ffba2d705112d9c0ca3d2b24539dd8dc26 (patch)
tree8434e93de2264ff0f728cfe4dc9b03afd69058cb /sidebar.php
parent852cbafcdba1744f6544643641417eaf89e4831a (diff)
downloadphpicalendar-55e814ffba2d705112d9c0ca3d2b24539dd8dc26.tar.gz
phpicalendar-55e814ffba2d705112d9c0ca3d2b24539dd8dc26.tar.bz2
phpicalendar-55e814ffba2d705112d9c0ca3d2b24539dd8dc26.zip
Localization update, every file changed, basically.
Diffstat (limited to 'sidebar.php')
-rw-r--r--sidebar.php16
1 files changed, 10 insertions, 6 deletions
diff --git a/sidebar.php b/sidebar.php
index 6c7c1e3..c0dd39d 100644
--- a/sidebar.php
+++ b/sidebar.php
@@ -204,8 +204,9 @@
<td valign="center" align="center">
<table width="160" border="0" cellpadding="0" cellspacing="0" class="calborder">
<tr>
+
<td align="left" valign="top" width="1" class="sideback"><img src="images/spacer.gif" width="1" height="20"></td>
- <td align="center" class="sideback"><b><font class="G10B"><?php print (strftime ($dateFormat_month, strtotime("-1 month", strtotime($getdate)))); ?></b></font></td>
+ <td align="center" class="sideback"><b><font class="G10B"><?php print (localizeDate ($dateFormat_month, strtotime("-1 month", strtotime($getdate)))); ?></b></font></td>
<td align="right" valign="top" width="1" class="sideback"></td>
</tr>
<tr>
@@ -224,7 +225,8 @@
<?php
$start_day = strtotime($week_start_day);
for ($i=0; $i<7; $i++) {
- $day = substr(date("D", $start_day), 0, 2);
+ $day_num = date("w", $start_day);
+ $day = $daysofweekreallyshort_lang[$day_num];
print "<td align=\"center\" class=\"G10B\"><b>$day</b></td>\n";
$start_day = ($start_day + (24.5 * 60 * 60));
}
@@ -284,7 +286,7 @@
<table width="160" border="0" cellpadding="0" cellspacing="0" class="calborder">
<tr>
<td align="left" valign="top" width="1" class="sideback"><img src="images/spacer.gif" width="1" height="20"></td>
- <td align="center" class="sideback"><font class="G10B"><b><?php print (strftime ($dateFormat_month, strtotime($getdate))); ?></b></font></td>
+ <td align="center" class="sideback"><font class="G10B"><b><?php print (localizeDate ($dateFormat_month, strtotime($getdate))); ?></b></font></td>
<td align="right" valign="top" width="1" class="sideback"></td>
</tr>
<tr>
@@ -303,7 +305,8 @@
<?php
$start_day = strtotime($week_start_day);
for ($i=0; $i<7; $i++) {
- $day = substr(date("D", $start_day), 0, 2);
+ $day_num = date("w", $start_day);
+ $day = $daysofweekreallyshort_lang[$day_num];
print "<td align=\"center\" class=\"G10B\"><b>$day</b></td>\n";
$start_day = ($start_day + (24.5 * 60 * 60));
}
@@ -363,7 +366,7 @@
<table width="160" border="0" cellpadding="0" cellspacing="0" class="calborder">
<tr>
<td align="left" valign="top" width="1" class="sideback"><img src="images/spacer.gif" width="1" height="20"></td>
- <td align="center" class="sideback"><font class="G10B"><b><?php print (strftime ($dateFormat_month, strtotime("+1 month", strtotime($getdate)))); ?></b></font></td>
+ <td align="center" class="sideback"><font class="G10B"><b><?php print (localizeDate ($dateFormat_month, strtotime("+1 month", strtotime($getdate)))); ?></b></font></td>
<td align="right" valign="top" width="1" class="sideback"></td>
</tr>
<tr>
@@ -382,7 +385,8 @@
<?php
$start_day = strtotime($week_start_day);
for ($i=0; $i<7; $i++) {
- $day = substr(date("D", $start_day), 0, 2);
+ $day_num = date("w", $start_day);
+ $day = $daysofweekreallyshort_lang[$day_num];
print "<td align=\"center\" class=\"G10B\"><b>$day</b></td>\n";
$start_day = ($start_day + (24.5 * 60 * 60));
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy