add missing i18n labels from ZipArchive template
This commit is contained in:
parent
c5d0285d70
commit
a9e4de8ffa
4 changed files with 62 additions and 4 deletions
23
docs/upgrades/templates-7.3.7/ZipArchiveTMPL00000001.tmpl
Normal file
23
docs/upgrades/templates-7.3.7/ZipArchiveTMPL00000001.tmpl
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
#ZipArchiveTMPL00000001
|
||||||
|
|
||||||
|
<tmpl_if session.var.adminOn>
|
||||||
|
<tmpl_if controls>
|
||||||
|
<p><tmpl_var controls></p>
|
||||||
|
</tmpl_if>
|
||||||
|
</tmpl_if>
|
||||||
|
|
||||||
|
<tmpl_if error>
|
||||||
|
<ul>
|
||||||
|
<li><tmpl_var error></li>
|
||||||
|
</ul>
|
||||||
|
</tmpl_if>
|
||||||
|
|
||||||
|
<tmpl_if fileUrl>
|
||||||
|
<a href="<tmpl_var fileUrl>"><tmpl_var title></a>
|
||||||
|
<tmpl_else>
|
||||||
|
<tmpl_if pageError>
|
||||||
|
<tmpl_var noInitialPage>
|
||||||
|
<tmpl_else>
|
||||||
|
<tmpl_var noFileSpecified>
|
||||||
|
</tmpl_if>
|
||||||
|
</tmpl_if>
|
||||||
|
|
@ -220,6 +220,9 @@ sub view {
|
||||||
unless($self->get("showPage")) {
|
unless($self->get("showPage")) {
|
||||||
$var{pageError} = "true";
|
$var{pageError} = "true";
|
||||||
}
|
}
|
||||||
|
my $i18n = WebGUI::International->new($self->session,"Asset_ZipArchive");
|
||||||
|
$var{noInitialPage} = $i18n->get('noInitialPage');
|
||||||
|
$var{noFileSpecified} = $i18n->get('noFileSpecified');
|
||||||
my $out = $self->processTemplate(\%var,undef,$self->{_viewTemplate});
|
my $out = $self->processTemplate(\%var,undef,$self->{_viewTemplate});
|
||||||
if (!$self->session->var->isAdminOn && $self->get("cacheTimeout") > 10) {
|
if (!$self->session->var->isAdminOn && $self->get("cacheTimeout") > 10) {
|
||||||
WebGUI::Cache->new($self->session,"view_".$self->getId)->set($out,$self->get("cacheTimeout"));
|
WebGUI::Cache->new($self->session,"view_".$self->getId)->set($out,$self->get("cacheTimeout"));
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,12 @@ our $HELP = {
|
||||||
{
|
{
|
||||||
'name' => 'error'
|
'name' => 'error'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'name' => 'noInitialPage var'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name' => 'noFileSpecified var'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
'name' => 'fileUrl'
|
'name' => 'fileUrl'
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -86,37 +86,63 @@ our $I18N = {
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
'zip archive template body' => {
|
'zip archive template body' => {
|
||||||
message => q|<p>The following variables are available in Zip Archive Templates:</p>
|
message => q|<p>The following variables are available in Zip Archive Templates:</p>
|
||||||
|,
|
|,
|
||||||
context => q|Describing the zip archive template variables|,
|
context => q|Describing the zip archive template variables|,
|
||||||
lastUpdated => 1148953449,
|
lastUpdated => 1148953449,
|
||||||
},
|
},
|
||||||
|
|
||||||
'zip archive asset variables title' => {
|
'zip archive asset variables title' => {
|
||||||
message => q|Zip Archive, Asset Template Variables|,
|
message => q|Zip Archive, Asset Template Variables|,
|
||||||
lastUpdated => 1109287565,
|
lastUpdated => 1109287565,
|
||||||
},
|
},
|
||||||
|
|
||||||
'zip archive asset variables body' => {
|
'zip archive asset variables body' => {
|
||||||
message => q|<p>The following variables are included by default in the Zip Archive Templates. They may or may not be particularly useful:</p>
|
message => q|<p>The following variables are included by default in the Zip Archive Templates. They may or may not be particularly useful:</p>
|
||||||
|,
|
|,
|
||||||
context => q|Describing the zip archive template asset variables|,
|
context => q|Describing the zip archive template asset variables|,
|
||||||
lastUpdated => 1148953449,
|
lastUpdated => 1148953449,
|
||||||
},
|
},
|
||||||
|
|
||||||
'showPage' => {
|
'showPage' => {
|
||||||
message => q|The name of the file from the Zip Archive that will be displayed when this Asset is viewed.
|
message => q|The name of the file from the Zip Archive that will be displayed when this Asset is viewed.
|
||||||
|,
|
|,
|
||||||
lastUpdated => 1166823840,
|
lastUpdated => 1166823840,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
'templateId' => {
|
||||||
|
message => q|The ID of the template used to display the contents of the Zip Archive.
|
||||||
|
|,
|
||||||
|
lastUpdated => 1166823840,
|
||||||
|
},
|
||||||
|
|
||||||
'templateId' => {
|
'templateId' => {
|
||||||
message => q|The ID of the template used to display the contents of the Zip Archive.
|
message => q|The ID of the template used to display the contents of the Zip Archive.
|
||||||
|,
|
|,
|
||||||
lastUpdated => 1166823840,
|
lastUpdated => 1166823840,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
'noInitialPage' => {
|
||||||
|
message => q|Error: No initial page specified.|,
|
||||||
|
lastUpdated => 1169699552,
|
||||||
|
},
|
||||||
|
|
||||||
|
'noInitialPage var' => {
|
||||||
|
message => q|An internationalized label for an error when no initial page was specified.|,
|
||||||
|
lastUpdated => 1169699552,
|
||||||
|
},
|
||||||
|
|
||||||
|
'noFileSpecified' => {
|
||||||
|
message => q|Error: No file specified.|,
|
||||||
|
lastUpdated => 1169699552,
|
||||||
|
},
|
||||||
|
|
||||||
|
'noFileSpecified var' => {
|
||||||
|
message => q|An internationalized label for an error when no file was specified.|,
|
||||||
|
lastUpdated => 1169699552,
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue