Add Help for new template variable, and i18n.
This commit is contained in:
parent
2548273219
commit
2173a202f8
3 changed files with 16 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ our $HELP = {
|
|||
{ name => 'invitations_enabled', },
|
||||
{ name => 'user_invitations_enabled', },
|
||||
{ name => 'invite_friend_url', },
|
||||
{ name => 'userFilter', },
|
||||
],
|
||||
related => [ ],
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue