From 2173a202f893c04637bf23796481e68e659b7565 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Mon, 23 Feb 2009 13:41:15 -0800 Subject: [PATCH] Add Help for new template variable, and i18n. --- lib/WebGUI/Account/Inbox.pm | 4 ++-- lib/WebGUI/Help/Account_Inbox.pm | 1 + lib/WebGUI/i18n/English/Account_Inbox.pm | 13 +++++++++++++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/lib/WebGUI/Account/Inbox.pm b/lib/WebGUI/Account/Inbox.pm index 78ada8bca..87ad58f65 100644 --- a/lib/WebGUI/Account/Inbox.pm +++ b/lib/WebGUI/Account/Inbox.pm @@ -1274,8 +1274,8 @@ ibox.sentBy, (IF(userProfileData.firstName != '' and userProfileData.firstName is not null and userProfileData.lastName !='' and userProfileData.lastName is not null, concat(userProfileData.firstName,' ',userProfileData.lastName),users.username)) as fullName EOSQL tie my %userHash, 'Tie::IxHash'; - my $i18n = WebGUI::International->new($session); - %userHash = ( 'all' => $i18n->echo('all users'), $session->db->buildHash($userSql) ); + my $i18n = WebGUI::International->new($session, 'Account_Inbox'); + %userHash = ( 'all' => $i18n->get('All users'), $session->db->buildHash($userSql) ); $var->{'userFilter'} = WebGUI::Form::selectBox($session,{ name => 'userFilter', options => \%userHash, diff --git a/lib/WebGUI/Help/Account_Inbox.pm b/lib/WebGUI/Help/Account_Inbox.pm index 99231a5ec..ed431ae2a 100644 --- a/lib/WebGUI/Help/Account_Inbox.pm +++ b/lib/WebGUI/Help/Account_Inbox.pm @@ -23,6 +23,7 @@ our $HELP = { { name => 'invitations_enabled', }, { name => 'user_invitations_enabled', }, { name => 'invite_friend_url', }, + { name => 'userFilter', }, ], related => [ ], }, diff --git a/lib/WebGUI/i18n/English/Account_Inbox.pm b/lib/WebGUI/i18n/English/Account_Inbox.pm index bd13a590e..2da36616b 100644 --- a/lib/WebGUI/i18n/English/Account_Inbox.pm +++ b/lib/WebGUI/i18n/English/Account_Inbox.pm @@ -546,6 +546,19 @@ our $I18N = { lastUpdated => 0, context => "Description of Inbox setting", }, + + 'userFilter' => { + message => q{A select box form element to filter the list of messages by who sent them.}, + lastUpdated => 1235421123, + context => "Description of Inbox setting", + }, + + 'All users' => { + message => q{All users}, + lastUpdated => 1235421123, + context => "Default setting for filtering in the Inbox. Short for Show messages from all users.", + }, + }; 1;