+2005-07-18 Helge Hess <helge.hess@opengroupware.org>
+
+ * UIxMailPartICalViewer.m: added -attendeeStatusLabel to produce a
+ readable and localized part-stat (v0.9.13)
+
2005-07-18 Helge Hess <helge.hess@opengroupware.org>
* UIxMailPartICalViewer.m: added code to support iMIP REPLY messages
--- /dev/null
+"icalstatus_ACCEPTED" = "accepted"
+"icalstatus_COMPLETED" = "completed"
+"icalstatus_DECLINED" = "declined"
+"icalstatus_DELEGATED" = "delegated"
+"icalstatus_IN-PROCESS" = "in process"
+"icalstatus_NEEDS-ACTION" = "needs action"
+"icalstatus_TENTATIVE" = "tentative"
+"icalstatus_extended_prefix" = "extended: "
--- /dev/null
+"icalstatus_ACCEPTED" = "TODO: accepted"
+"icalstatus_COMPLETED" = "TODO: completed"
+"icalstatus_DECLINED" = "TODO: declined"
+"icalstatus_DELEGATED" = "TODO: delegated"
+"icalstatus_IN-PROCESS" = "TODO: in process"
+"icalstatus_NEEDS-ACTION" = "TODO: needs action"
+"icalstatus_TENTATIVE" = "TODO: tentative"
+"icalstatus_extended_prefix" = "TODO: extended: "
MailPartViewers_LANGUAGES = English French
+MailPartViewers_LANGUAGES = English French
+
MailPartViewers_OBJC_FILES += \
MailPartViewersProduct.m \
\
Version \
product.plist \
+MailPartViewers_LOCALIZED_RESOURCE_FILES += \
+ Localizable.strings
+
# make
-include GNUmakefile.preamble
return date;
}
+/* attendee fields */
+
+- (NSString *)attendeeStatusLabel {
+ NSString *p;
+
+ p = [[self attendee] partStat];
+
+ if ([p hasPrefix:@"x-"] || [p hasPrefix:@"X-"]) {
+ p = [self labelForKey:@"icalstatus_extended_prefix"];
+ return [p stringByAppendingString:[p substringFromIndex:2]];
+ }
+
+ if ([p length] == 0) p = @"NEEDS-ACTION";
+ p = [@"icalstatus_" stringByAppendingString:p];
+ return [self labelForKey:p];
+}
+
/* calendar folder support */
- (id)calendarFolder {
return [attendees objectAtIndex:0];
}
- (iCalPerson *)storedReplyAttendee {
+ /*
+ TODO: since an attendee can have multiple email addresses, maybe we
+ should translate the email to an internal uid and then retrieve
+ all emails addresses for matching the participant.
+
+ Note: -findParticipantWithEmail: does not parse the email!
+ */
iCalEvent *e;
iCalPerson *p;
# version file
-SUBMINOR_VERSION:=12
+SUBMINOR_VERSION:=13
# v0.9.0 requires libNGiCal v4.5.53
# v0.9.1 requires libNGMime v4.5.213
<var:foreach list="authorativeEvent.participants" item="attendee">
<a var:href="attendee.email"
><var:string value="attendee.cnForDisplay" /></a>
- (<var:string value="attendee.partStat" />)
+ (<var:string value="attendeeStatusLabel" />)
<br />
</var:foreach>
</td>