document Notification template, move all labels into Post

This commit is contained in:
Colin Kuskie 2005-03-22 05:42:41 +00:00
parent d1c12a1e08
commit 69d43e28c8
3 changed files with 54 additions and 2 deletions

View file

@ -606,8 +606,8 @@ sub notifySubscribers {
$lang{$u->profileField("language")}{var} = $self->getTemplateVars($lang{$u->profileField("language")}{var});
$lang{$u->profileField("language")}{var}{url} = WebGUI::URL::getSiteURL().$self->getUrl;
$lang{$u->profileField("language")}{var}{'notify.subscription.message'} =
WebGUI::International::get(875,"WebGUI",$u->profileField("language"));
$lang{$u->profileField("language")}{subject} = WebGUI::International::get(523,"WebGUI",$u->profileField("language"));
WebGUI::International::get(875,"Post",$u->profileField("language"));
$lang{$u->profileField("language")}{subject} = WebGUI::International::get(523,"Post",$u->profileField("language"));
$lang{$u->profileField("language")}{message} = $self->processTemplate($lang{$u->profileField("language")}{var}, $self->getThread->getParent->get("notificationTemplateId"));
}
WebGUI::MessageLog::addEntry($userId,"",$lang{$u->profileField("language")}{subject},$lang{$u->profileField("language")}{message});

View file

@ -15,6 +15,7 @@ our $HELP = {
},
]
},
'post template variables' => {
title => 'post template variables title',
body => 'post template variables body',
@ -25,6 +26,22 @@ our $HELP = {
},
]
},
'notification template' => {
title => 'notification template title',
body => 'notification template body',
related => [
{
tag => 'template language',
namespace => 'Template'
},
{
tag => 'post template variables',
namespace => 'Post'
},
]
},
};
1;

View file

@ -303,6 +303,41 @@ The name of this attachment.
lastUpdated => 1111464988,
},
'notification template title' => {
message => q|Notification Template|,
lastUpdated => 1111253044,
},
'notification template body' => {
message => q|The following variables are available in the Notification Template:
<p>
All variables from the Post Template Variables.
<p>
<b>url</b><br>
The URL to the post that triggered the notification.
<p>
<b>notification.subscription.message</b><br>
Internationalized message that a new message has been posted to a thread that the
user subscribed to.
<p>
|,
lastUpdated => 1111465141,
},
'875' => {
message => q|A new message has been posted to one of your subscriptions.|,
lastUpdated => 1111470216,
},
'523' => {
message => q|Notification|,
lastUpdated => 1031514049
},
};
1;