Fixed templates for email notifications during invitations. They will need to be fully translated (in languages other than english and french)

Monotone-Parent: a62274e4f237a8d859323dac4cb26008cc301b18
Monotone-Revision: 64c0713802f9595de3f792409a68ecb74bb80532

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2008-10-24T16:12:21
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Ludovic Marcotte
2008-10-24 16:12:21 +00:00
parent 1be3bd22c1
commit 40d5c508cc
16 changed files with 58 additions and 7 deletions
@@ -1,2 +1,2 @@
<#IsSubject>Antwoord voor de gebeurtenisuitnodiging: <#summary/></#IsSubject>
<#IsBody><#organizer/> heeft uw uitnodiging voor de gebeurtenis <#HasAccepted>geaccepteerd</#HasAccepted><#HasDeclined>geweigerd</#HasDeclined>.</#IsBody>
<#IsBody><#organizer/> heeft uw uitnodiging voor de gebeurtenis <#HasAccepted>geaccepteerd</#HasAccepted><#HasDeclined>geweigerd</#HasDeclined><#HasNotAcceptedNotDeclined>not yet decided upon</#HasNotAcceptedNotDeclined>.</#IsBody>
@@ -24,3 +24,7 @@ HasAccepted: WOConditional {
HasDeclined: WOConditional {
condition = hasDeclined;
}
HasNotAcceptedNotDeclined: WOConditional {
condition = hasNotAcceptedNotDeclined;
}
@@ -1,2 +1,2 @@
<#IsSubject>Event Invitation Reply: <#summary/></#IsSubject>
<#IsBody><#attendee/> has <#HasAccepted>accepted</#HasAccepted><#HasDeclined>declined</#HasDeclined> your event invitation.</#IsBody>
<#IsBody><#attendee/> has <#HasAccepted>accepted</#HasAccepted><#HasDeclined>declined</#HasDeclined><#HasNotAcceptedNotDeclined>not yet decided upon</#HasNotAcceptedNotDeclined> your event invitation.</#IsBody>
@@ -24,3 +24,7 @@ HasAccepted: WOConditional {
HasDeclined: WOConditional {
condition = hasDeclined;
}
HasNotAcceptedNotDeclined: WOConditional {
condition = hasNotAcceptedNotDeclined;
}
@@ -1,2 +1,2 @@
<#IsSubject>Réponse à l'invitation : «<#summary/>»</#IsSubject>
<#IsBody><#attendee/> a <#HasAccepted>accepté</#HasAccepted><#HasDeclined>refusé</#HasDeclined> votre invitation.</#IsBody>
<#IsBody><#attendee/> a <#HasAccepted>accepté</#HasAccepted><#HasDeclined>refusé</#HasDeclined><#HasNotAcceptedNotDeclined>choisi de reporter sa décision par rapport à</#HasNotAcceptedNotDeclined> votre invitation.</#IsBody>
@@ -24,3 +24,7 @@ HasAccepted: WOConditional {
HasDeclined: WOConditional {
condition = hasDeclined;
}
HasNotAcceptedNotDeclined: WOConditional {
condition = hasNotAcceptedNotDeclined;
}
@@ -1,2 +1,2 @@
<#IsSubject>Antwort Termineinladung: <#summary/></#IsSubject>
<#IsBody><#attendee/> hat Ihre Termineinladung <#HasAccepted>akzeptiert</#HasAccepted><#HasDeclined>abgelehnt</#HasDeclined></#IsBody>.
<#IsBody><#attendee/> hat Ihre Termineinladung <#HasAccepted>akzeptiert</#HasAccepted><#HasDeclined>abgelehnt</#HasDeclined><#HasNotAcceptedNotDeclined>not yet decided upon</#HasNotAcceptedNotDeclined></#IsBody>.
@@ -24,3 +24,7 @@ HasAccepted: WOConditional {
HasDeclined: WOConditional {
condition = hasDeclined;
}
HasNotAcceptedNotDeclined: WOConditional {
condition = hasNotAcceptedNotDeclined;
}
@@ -119,6 +119,11 @@ static NSCharacterSet *wsSet = nil;
return [partStat isEqualToString: @"declined"];
}
- (BOOL) hasNotAcceptedNotDeclined
{
return !([self hasAccepted] || [self hasDeclined]);
}
- (NSCalendarDate *) startDate
{
NSCalendarDate *date;
@@ -131,6 +136,11 @@ static NSCharacterSet *wsSet = nil;
return date;
}
- (NSString *) summary
{
return [apt summary];
}
- (BOOL) isSubject
{
return isSubject;
@@ -1,2 +1,2 @@
<#IsSubject>Re: Appuntemento : "<#summary/>"</#IsSubject>
<#IsBody><#attendee/> ha <#HasAccepted>accettato</#HasAccepted><#HasDeclined>declinato</#HasDeclined> l'invito al proprio evento.</#IsBody>
<#IsBody><#attendee/> ha <#HasAccepted>accettato</#HasAccepted><#HasDeclined>declinato</#HasDeclined><#HasNotAcceptedNotDeclined>not yet decided upon</#HasNotAcceptedNotDeclined> l'invito al proprio evento.</#IsBody>
@@ -24,3 +24,7 @@ HasAccepted: WOConditional {
HasDeclined: WOConditional {
condition = hasDeclined;
}
HasNotAcceptedNotDeclined: WOConditional {
condition = hasNotAcceptedNotDeclined;
}
@@ -40,6 +40,7 @@
NSCalendarDate *oldStartDate;
NSCalendarDate *newStartDate;
BOOL isSubject;
NSString *organizerName;
}
- (iCalEntityObject *) apt;
@@ -68,6 +68,7 @@ static NSTimeZone *UTC = nil;
- (void) dealloc
{
[apt release];
[organizerName release];
[super dealloc];
}
@@ -97,9 +98,14 @@ static NSTimeZone *UTC = nil;
return [apt summary];
}
- (void) setOrganizerName: (NSString *) theString
{
ASSIGN(organizerName, theString);
}
- (NSString *) organizerName
{
return [[apt organizer] cn];
return organizerName;
}
/* Helpers */
@@ -1,2 +1,2 @@
<#IsSubject>Respuesta a la invitación al evento: <#summary/></#IsSubject>
<#IsBody><#attendee/> ha <#HasAccepted>aceptado</#HasAccepted><#HasDelined>rechazado</#HasDeclined> su invitación al evento.</#IsBody>
<#IsBody><#attendee/> ha <#HasAccepted>aceptado</#HasAccepted><#HasDelined>rechazado</#HasDeclined><#HasNotAcceptedNotDeclined>not yet decided upon</#HasNotAcceptedNotDeclined> su invitación al evento.</#IsBody>
@@ -24,3 +24,7 @@ HasAccepted: WOConditional {
HasDeclined: WOConditional {
condition = hasDeclined;
}
HasNotAcceptedNotDeclined: WOConditional {
condition = hasNotAcceptedNotDeclined;
}
@@ -524,6 +524,16 @@ _occurenceHasID (iCalRepeatableEntityObject *occurence, NSString *recID)
/* construct message content */
p = [app pageWithName: pageName inContext: context];
[p setApt: object];
if ([[object organizer] cn] && [[[object organizer] cn] length])
{
[p setOrganizerName: [[object organizer] cn]];
}
else
{
[p setOrganizerName: [ownerUser cn]];
}
subject = [p getSubject];
text = [p getBody];