]> err.no Git - scalable-opengroupware.org/commitdiff
added localized labels
authorhelge <helge@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Mon, 18 Jul 2005 08:55:04 +0000 (08:55 +0000)
committerhelge <helge@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Mon, 18 Jul 2005 08:55:04 +0000 (08:55 +0000)
git-svn-id: http://svn.opengroupware.org/SOGo/trunk@781 d1b88da0-ebda-0310-925b-ed51d893ca5b

SOGo/UI/MailPartViewers/ChangeLog
SOGo/UI/MailPartViewers/English.lproj/Localizable.strings [new file with mode: 0644]
SOGo/UI/MailPartViewers/French.lproj/Localizable.strings [new file with mode: 0644]
SOGo/UI/MailPartViewers/GNUmakefile
SOGo/UI/MailPartViewers/UIxMailPartICalViewer.m
SOGo/UI/MailPartViewers/Version
SOGo/UI/Templates/MailPartViewers/UIxMailPartICalViewer.wox

index b8ce7026ac0576cf32ea68d1f779ce4675824c47..0b2d961eb61e134f800c240af63fd7587c68abb9 100644 (file)
@@ -1,3 +1,8 @@
+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
diff --git a/SOGo/UI/MailPartViewers/English.lproj/Localizable.strings b/SOGo/UI/MailPartViewers/English.lproj/Localizable.strings
new file mode 100644 (file)
index 0000000..67f0c59
--- /dev/null
@@ -0,0 +1,8 @@
+"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: "
diff --git a/SOGo/UI/MailPartViewers/French.lproj/Localizable.strings b/SOGo/UI/MailPartViewers/French.lproj/Localizable.strings
new file mode 100644 (file)
index 0000000..5a9683e
--- /dev/null
@@ -0,0 +1,8 @@
+"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: "
index abf0961cbb1510ac4842fbe28de4fb4147d9feeb..23a59d651ccbff4e11d97842bbcd7cb48fd0e756 100644 (file)
@@ -8,6 +8,8 @@ MailPartViewers_PRINCIPAL_CLASS = MailPartViewersProduct
 
 MailPartViewers_LANGUAGES = English French
 
+MailPartViewers_LANGUAGES = English French
+
 MailPartViewers_OBJC_FILES += \
        MailPartViewersProduct.m        \
        \
@@ -30,6 +32,9 @@ MailPartViewers_RESOURCE_FILES += \
        Version                 \
        product.plist           \
 
+MailPartViewers_LOCALIZED_RESOURCE_FILES += \
+       Localizable.strings
+
 # make
 
 -include GNUmakefile.preamble
index f0484bbd1005fee6ee74438b48c2839fc0bbcc55..cd9ab67e7439f0a4e74c5c9d8e414ea7beee9bdf 100644 (file)
   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;
   
index cb1c59486e3b15c29115ea866d6f9d1c55818327..fae4f21a75c78cd381da74e338bb4b9608e08e15 100644 (file)
@@ -1,6 +1,6 @@
 # version file
 
-SUBMINOR_VERSION:=12
+SUBMINOR_VERSION:=13
 
 # v0.9.0 requires libNGiCal v4.5.53
 # v0.9.1 requires libNGMime v4.5.213
index 3b550069d7c6ca5dda63d1d5d84e957b3f5ecf94..0fdbba5706b7d14ef052b7d16210edeb5c1ff8ae 100644 (file)
             <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>