add missing i18n labels from ZipArchive template

This commit is contained in:
Colin Kuskie 2007-01-25 04:41:26 +00:00
parent c5d0285d70
commit a9e4de8ffa
4 changed files with 62 additions and 4 deletions

View file

@ -220,6 +220,9 @@ sub view {
unless($self->get("showPage")) {
$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});
if (!$self->session->var->isAdminOn && $self->get("cacheTimeout") > 10) {
WebGUI::Cache->new($self->session,"view_".$self->getId)->set($out,$self->get("cacheTimeout"));

View file

@ -63,6 +63,12 @@ our $HELP = {
{
'name' => 'error'
},
{
'name' => 'noInitialPage var'
},
{
'name' => 'noFileSpecified var'
},
{
'name' => 'fileUrl'
},

View file

@ -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>
|,
context => q|Describing the zip archive template variables|,
lastUpdated => 1148953449,
},
'zip archive asset variables title' => {
'zip archive asset variables title' => {
message => q|Zip Archive, Asset Template Variables|,
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>
|,
context => q|Describing the zip archive template asset variables|,
lastUpdated => 1148953449,
},
'showPage' => {
'showPage' => {
message => q|The name of the file from the Zip Archive that will be displayed when this Asset is viewed.
|,
lastUpdated => 1166823840,
},
'templateId' => {
message => q|The ID of the template used to display the contents of the Zip Archive.
|,
lastUpdated => 1166823840,
},
'templateId' => {
message => q|The ID of the template used to display the contents of the Zip Archive.
|,
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,
},
};