* Alert the reader to recurrences in invitations.
authorArt Cancro <ajc@citadel.org>
Mon, 22 Dec 2008 22:39:17 +0000 (22:39 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 22 Dec 2008 22:39:17 +0000 (22:39 +0000)
webcit/calendar.c

index 06f9655969c1f991da06541c5bb86979f62241d0..b583d133ac2b24f5a3118ce93defa88ad191be78 100644 (file)
@@ -153,6 +153,14 @@ void cal_process_object(StrBuf *Target,
                StrBufAppendPrintf(Target, "</dd>\n");
        }
 
+       if (icalcomponent_get_first_property(cal, ICAL_RRULE_PROPERTY)) {
+               /* Unusual string syntax used here in order to re-use existing translations */
+               StrBufAppendPrintf(Target, "<dt>%s:</dt><dd>%s.</dd>\n",
+                       _("Recurrence"),
+                       _("This is a recurring event")
+               );
+       }
+
        /* If the component has attendees, iterate through them. */
        for (p = icalcomponent_get_first_property(cal, ICAL_ATTENDEE_PROPERTY); 
             (p != NULL);