From 180b454ce777c76fdefce3d57bd45fd884e6a2d4 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Thu, 26 Feb 2009 17:05:45 -0800 Subject: [PATCH] Add settings for inbox notifications/SMS. --- lib/WebGUI/Operation/Settings.pm | 16 +++++++++++++++ lib/WebGUI/ProfileCategory.pm | 1 - lib/WebGUI/i18n/English/Message_Center.pm | 24 ++++++++++++++++++++++- 3 files changed, 39 insertions(+), 2 deletions(-) diff --git a/lib/WebGUI/Operation/Settings.pm b/lib/WebGUI/Operation/Settings.pm index 98ec97d6b..d85901962 100644 --- a/lib/WebGUI/Operation/Settings.pm +++ b/lib/WebGUI/Operation/Settings.pm @@ -287,6 +287,22 @@ sub definition { hoverHelp=>$i18n->get('mail return path help'), defaultValue=>$setting->get("mailReturnPath") }); + push(@fields, { + tab => 'messaging', + fieldType => 'email', + name => 'smsGateway', + label => $i18n->get('sms gateway', 'Message_Center'), + hoverHelp => $i18n->get('sms gateway help', 'Message_Center'), + defaultValue => $setting->get('smsGateway'), + }); + push(@fields, { + tab => 'messaging', + fieldType => 'yesNo', + name => 'sendInboxNotificationsOnly', + label => $i18n->get('send inbox notifications only', 'Message_Center'), + hoverHelp => $i18n->get('send inbox notifications only help', 'Message_Center'), + defaultValue => $setting->get('sendInboxNotificationsOnly'), + }); # misc push(@fields, { tab=>"misc", diff --git a/lib/WebGUI/ProfileCategory.pm b/lib/WebGUI/ProfileCategory.pm index a9d570d56..3346ae6cd 100644 --- a/lib/WebGUI/ProfileCategory.pm +++ b/lib/WebGUI/ProfileCategory.pm @@ -1,6 +1,5 @@ package WebGUI::ProfileCategory; - =head1 LEGAL ------------------------------------------------------------------- diff --git a/lib/WebGUI/i18n/English/Message_Center.pm b/lib/WebGUI/i18n/English/Message_Center.pm index 145e507b0..c5d21bf3e 100644 --- a/lib/WebGUI/i18n/English/Message_Center.pm +++ b/lib/WebGUI/i18n/English/Message_Center.pm @@ -22,12 +22,34 @@ our $I18N = { lastUpdated => 1235685248, }, - 'receive inbox emails' => { + 'receive inbox sms' => { message => q|Receive inbox notification via SMS?|, context => q|Allows a user to choose how they get notified about things in their Inbox.|, lastUpdated => 1235685248, }, + 'sms gateway' => { + message => q|SMS gateway|, + context => q|email to SMS/text email address for this site.|, + lastUpdated => 1235685248, + }, + + 'sms gateway help' => { + message => q|The email address that this site would use to send an SMS message.|, + lastUpdated => 1235695517, + }, + + 'send inbox notifications only' => { + message => q|Send only Inbox notifications|, + context => q|Site setting. A notification is a short message that something is in the Inbox.|, + lastUpdated => 1235685248, + }, + + 'send inbox notifications only help' => { + message => q|Should WebGUI always just send notifications about Inbox messages, instead of the message itself?|, + lastUpdated => 1235696295, + }, + }; 1;