");
+ wc_printf(" \n ");
- wc_printf("\n");
+ wc_printf("\n");
- wc_printf("");
+ wc_printf(" | ");
localtime_r(&previous_month, &tm);
wc_printf("",
(int)(tm.tm_year)+1900, tm.tm_mon + 1);
- wc_printf("\n");
+ wc_printf("\n", _("previous"));
wc_strftime(colheader_label, sizeof colheader_label, "%B", &starting_tm);
wc_printf(" "
- ""
+ ""
"%s %d"
""
" ", colheader_label, year);
@@ -566,20 +588,20 @@ void calendar_month_view(int year, int month, int day) {
localtime_r(&next_month, &tm);
wc_printf("",
(int)(tm.tm_year)+1900, tm.tm_mon + 1);
- wc_printf("\n");
+ wc_printf("\n", _("next"));
wc_printf(" | \n");
/* Inner table (the real one) */
- wc_printf("");
- wc_printf(" | ");
+ wc_printf("");
+ wc_printf(" | ");
colheader_time = thetime;
for (i=0; i<7; ++i) {
colheader_time = thetime + (i * 86400) ;
localtime_r(&colheader_time, &colheader_tm);
wc_strftime(colheader_label, sizeof colheader_label, "%A", &colheader_tm);
- wc_printf(""
+ wc_printf(" | "
"%s | ", colheader_label);
}
@@ -599,7 +621,7 @@ void calendar_month_view(int year, int month, int day) {
wc_printf("",
((tm.tm_mon != month-1) ? "out" :
- ((tm.tm_mday == day) ? "today" :
+ (((tm.tm_year == today_tm.tm_year) && (tm.tm_mon == today_tm.tm_mon) && (tm.tm_mday == today_tm.tm_mday)) ? "today" :
((tm.tm_wday==0 || tm.tm_wday==6) ? "weekend" :
"day")))
);
@@ -637,22 +659,7 @@ void calendar_month_view(int year, int month, int day) {
}
wc_printf(" | " /* end of inner table */
- " " /* end of outer table */
- "\n");
-
- /*
- * Initialize the bubble tooltips.
- *
- * Yes, this is as stupid as it looks. Instead of just making the call
- * to btt_enableTooltips() straight away, we have to create a timer event
- * and let it initialize as an event after 1 millisecond. This is to
- * work around a bug in Internet Explorer that causes it to crash if we
- * manipulate the innerHTML of various DOM nodes while the page is still
- * being rendered. See http://www.shaftek.org/blog/archives/000212.html
- * for more information.
- */
- StrBufAppendPrintf(WC->trailing_javascript,
- " setTimeout(\"btt_enableTooltips('inner_month')\", 1); \n"
+ " \n" /* end of outer table */
);
}
@@ -695,22 +702,21 @@ void calendar_brief_month_view(int year, int month, int day) {
}
/* Outer table (to get the background color) */
- wc_printf(" | |