i18n some InOutBoard template labels

This commit is contained in:
Colin Kuskie 2006-12-11 04:24:58 +00:00
parent 1905eb1c2e
commit c3eaa14741
6 changed files with 123 additions and 0 deletions

View file

@ -172,6 +172,7 @@ sub view {
my $i18n = WebGUI::International->new($self->session, "Asset_InOutBoard");
if ($self->session->user->isInGroup($self->getValue("reportViewerGroup"))) {
$var{'viewReportURL'} = $self->getUrl("func=viewReport");
$var{'viewReportLabel'} = $i18n->get('view report label');
$var{canViewReport} = 1;
}
else { $var{canViewReport} = 0; }
@ -233,6 +234,7 @@ sub view {
$var{displayForm} = 1;
$var{'form'} = $f->print;
$var{'selectDelegatesURL'} = $self->getUrl("func=selectDelegates");
$var{'selectDelegatesLabel'} = $i18n->get('select delegates label');
}
else { $var{displayForm} = 0; }
@ -451,6 +453,7 @@ sub www_viewReport {
-hoverHelp=>$i18n->get('14 description'),
);
$f->submit(-value=>"Search");
$var{'reportTitleLabel'} = $i18n->get('report title');
$var{'form'} = $f->print;
my $url = $self->getUrl("func=viewReport;selectDepartment=".$self->session->form->process("selectDepartment").";reportPagination=".$self->session->form->process("reportPagination").";startDate=".$self->session->form->process("startDate").";endDate=".$self->session->form->process("endDate").";doit=1");
if ($self->session->form->process("doit")) {

View file

@ -123,6 +123,9 @@ our $HELP = {
title => '22',
body => '23',
variables => [
{
'name' => 'reportTitle'
},
{
'name' => 'showReport'
},

View file

@ -400,6 +400,38 @@ can alter their status.|,
context => q|label for user profile field|,
},
'report title' => {
message => q|In/Out Board Report|,
lastUpdated =>1165810121,
context => q|Default i18n label for a In/Out Board Report|,
},
'reportTitle' => {
message => q|Internationalized title for an In/Out Board Report.|,
lastUpdated =>1165810121,
},
'select delegates label' => {
message => q|Select Delegates|,
lastUpdated =>1165810121,
context => q|Default i18n label for the URL to select delegates|,
},
'selectDelegatesLabel' => {
message => q|Internationalized title for the URL to select delegates.|,
lastUpdated =>1165810121,
},
'view report label' => {
message => q|View Report|,
lastUpdated =>1165810121,
},
'viewReportLabel' => {
message => q|Internationalized title for the URL to view reports.|,
lastUpdated =>1165810121,
},
};
1;