Add Help for new template variable, and i18n.

This commit is contained in:
Colin Kuskie 2009-02-23 13:41:15 -08:00
parent 2548273219
commit 2173a202f8
3 changed files with 16 additions and 2 deletions

View file

@ -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,

View file

@ -23,6 +23,7 @@ our $HELP = {
{ name => 'invitations_enabled', },
{ name => 'user_invitations_enabled', },
{ name => 'invite_friend_url', },
{ name => 'userFilter', },
],
related => [ ],
},

View file

@ -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;