From e70494900adf73cd557dcdb92f46203c6f33fc91 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Fri, 13 Mar 2009 10:21:52 -0700 Subject: [PATCH] Pruning out notifications code from SMS. --- lib/WebGUI/Operation/Settings.pm | 22 +--------- lib/WebGUI/i18n/English/Message_Center.pm | 49 ----------------------- lib/WebGUI/i18n/English/WebGUI.pm | 12 ++++++ 3 files changed, 14 insertions(+), 69 deletions(-) delete mode 100644 lib/WebGUI/i18n/English/Message_Center.pm diff --git a/lib/WebGUI/Operation/Settings.pm b/lib/WebGUI/Operation/Settings.pm index d0dc4e7b7..83b565971 100644 --- a/lib/WebGUI/Operation/Settings.pm +++ b/lib/WebGUI/Operation/Settings.pm @@ -291,28 +291,10 @@ sub definition { tab => 'messaging', fieldType => 'email', name => 'smsGateway', - label => $i18n->get('sms gateway', 'Message_Center'), - hoverHelp => $i18n->get('sms gateway help', 'Message_Center'), + label => $i18n->get('sms gateway'), + hoverHelp => $i18n->get('sms gateway help'), 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'), - }); - push(@fields, { - tab => 'messaging', - fieldType => 'template', - #1234567890123456789012 - name => 'inboxNotification00001', - label => $i18n->get('inbox notification template', 'Message_Center'), - hoverHelp => $i18n->get('inbox notification template help', 'Message_Center'), - defaultValue => $setting->get('inboxNotificationTemplateId'), - namespace => 'Account/Inbox/Notification', - }); # misc push(@fields, { tab=>"misc", diff --git a/lib/WebGUI/i18n/English/Message_Center.pm b/lib/WebGUI/i18n/English/Message_Center.pm deleted file mode 100644 index e78d89b0b..000000000 --- a/lib/WebGUI/i18n/English/Message_Center.pm +++ /dev/null @@ -1,49 +0,0 @@ -package WebGUI::i18n::English::Message_Center; - -use strict; - -our $I18N = { - - 'receive inbox emails' => { - message => q|Receive Inbox message notifications via email?|, - context => q|Allows a user to choose how they get notified about things in their Inbox.|, - lastUpdated => 1235685248, - }, - - 'receive inbox sms' => { - message => q|Receive Inbox message notifications 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 just send notifications about Inbox messages, instead of the message itself?|, - lastUpdated => 1235696295, - }, - - 'inbox notification' => { - message => q|You have a new message in your Inbox.|, - lastUpdated => 1235708853, - }, - -}; - -1; -#vim:ft=perl diff --git a/lib/WebGUI/i18n/English/WebGUI.pm b/lib/WebGUI/i18n/English/WebGUI.pm index 5342c4957..61fcfef6b 100644 --- a/lib/WebGUI/i18n/English/WebGUI.pm +++ b/lib/WebGUI/i18n/English/WebGUI.pm @@ -4338,6 +4338,18 @@ Users may override this setting in their profile. 'recaptcha public key' => { message => 'reCAPTCHA Public Key' }, + + '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, + }, + }; 1;