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

@ -13,6 +13,7 @@
Added tests for File and Image assets to verify that this happens correctly.
- fix - Unable to add EventsCalendar
- fix - Wiki Page not added to config
- fix - Some functions in InOutBoard not internationalized
7.3.0

View file

@ -0,0 +1,33 @@
#IOB0000000000000000002
#namespace:InOutBoard/Report
<h2><tmpl_var reportTitle></h2>
<div class="iob">
<tmpl_var form><br />
<tmpl_if showReport>
<table width="100%" cellpadding="3" cellspacing="0">
<tr>
<th><tmpl_var username.label></th>
<th><tmpl_var status.label></th>
<th><tmpl_var date.label></th>
<th><tmpl_var message.label></th>
<th><tmpl_var updatedBy.label></th>
</tr>
<tmpl_loop rows_loop>
<tmpl_if deptHasChanged>
<tr><td colspan="5"><b><tmpl_var department></b></td></tr>
</tmpl_if>
<tr>
<td><tmpl_var username></td>
<td><tmpl_var status></td>
<td><tmpl_var dateStamp></td>
<td><tmpl_var message></td>
<td><tmpl_var createdBy></td>
</tr>
</tmpl_loop>
<tr><td colspan="5"><tmpl_var paginateBar></td></tr>
</table>
</tmpl_if>
</div>

View file

@ -0,0 +1,51 @@
#IOB0000000000000000001
#namespace:InOutBoard
<a name="id<tmpl_var assetId>" id="id<tmpl_var assetId>"></a>
<tmpl_if session.var.adminOn>
<p><tmpl_var controls></p>
</tmpl_if>
<tmpl_if displayTitle>
<h2><tmpl_var title></h2>
</tmpl_if>
<div class="fontSettings">
<tmpl_var description>
<br /><br />
</div>
<div class="pagination">
<tmpl_if selectDelegatesURL>
<a href="<tmpl_var selectDelegatesURL>"><tmpl_var selectDelegatesLabel></a>
</tmpl_if>
<tmpl_if canViewReport>
<tmpl_if selectDelegatesURL>
&nbsp;&middot;&nbsp;
</tmpl_if>
<a href="<tmpl_var viewReportURL>"><tmpl_var reportTitleLabel></a>
</tmpl_if>
</div>
<tmpl_if displayForm>
<div class="fontSettings">
<tmpl_var form>
</div>
</tmpl_if>
<table width="100%" cellpadding="3" cellspacing="0" class="iob">
<tmpl_loop rows_loop>
<tmpl_if deptHasChanged>
<tr><td colspan="4" class="noBorder"><br /><b><tmpl_var department></b></td></tr>
</tmpl_if>
<tr>
<td<tmpl_if __ODD__> class="odd"</tmpl_if>><tmpl_var username></td>
<td<tmpl_if __ODD__> class="odd"</tmpl_if>><tmpl_var status></td>
<td<tmpl_if __ODD__> class="odd"</tmpl_if>><tmpl_var dateStamp></td>
<td<tmpl_if __ODD__> class="odd"</tmpl_if>><tmpl_var message></td>
</tr>
</tmpl_loop>
<tr><td colspan="4"><tmpl_var paginateBar></td></tr>
</table>

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;