]> code.citadel.org Git - citadel.git/blobdiff - webcit/calendar.c
Began making changes to do better handling of character sets.
[citadel.git] / webcit / calendar.c
index a14bc727b135177ece1a49c5436be44d42a0ac4c..5353dfa67d8f11f7cc9502ff53b0239de196cdb5 100644 (file)
@@ -163,13 +163,16 @@ void cal_process_object(icalcomponent *cal,
                        t = icalproperty_get_dtstart(p);
 
                        if (t.is_date) {
+                               struct tm d_tm;
+                               char d_str[32];
+                               memset(&d_tm, 0, sizeof d_tm);
+                               d_tm.tm_year = t.year - 1900;
+                               d_tm.tm_mon = t.month - 1;
+                               d_tm.tm_mday = t.day;
+                               wc_strftime(d_str, sizeof d_str, "%x", &d_tm);
                                wprintf("<TR><TD><B>");
                                wprintf(_("Date:"));
-                               wprintf("</B></TD><TD>"
-                                       "%s %d, %d</TD></TR>",
-                                       months[t.month - 1],
-                                       t.day, t.year
-                               );
+                               wprintf("</B></TD><TD>%s</TD></TR>", d_str);
                        }
                        else {
                                tt = icaltime_as_timet(t);
@@ -264,14 +267,15 @@ void cal_process_object(icalcomponent *cal,
                lprintf(9, "...done.\n");
 
                /** Display the Accept/Decline buttons */
-               wprintf("<TR><TD>How would you like to respond to this invitation?</td>"
-                       "<td><FONT SIZE=+1>"
+               wprintf("<tr><td>%s</td>"
+                       "<td><font size=+1>"
                        "<a href=\"respond_to_request?msgnum=%ld&cal_partnum=%s&sc=Accept\">%s</a>"
                        " | "
                        "<a href=\"respond_to_request?msgnum=%ld&cal_partnum=%s&sc=Tentative\">%s</a>"
                        " | "
                        "<a href=\"respond_to_request?msgnum=%ld&cal_partnum=%s&sc=Decline\">%s</a>"
                        "</FONT></TD></TR>\n",
+                       _("How would you like to respond to this invitation?"),
                        msgnum, cal_partnum, _("Accept"),
                        msgnum, cal_partnum, _("Tentative"),
                        msgnum, cal_partnum, _("Decline")
@@ -465,7 +469,7 @@ void handle_rsvp(void) {
 
 /**
  * \defgroup MsgDisplayHandlers Display handlers for message reading 
- * \todo why does doxygen not parse this? and generate another group?
+ * \ingroup Calendaring
  */
 
 /*@{*/