diff --git a/lib/WebGUI/Asset/Wobject/SQLReport.pm b/lib/WebGUI/Asset/Wobject/SQLReport.pm index dbb98a0d7..5d5e2632b 100644 --- a/lib/WebGUI/Asset/Wobject/SQLReport.pm +++ b/lib/WebGUI/Asset/Wobject/SQLReport.pm @@ -270,9 +270,9 @@ sub getEditForm { # Download Type my %downloadTypes; tie %downloadTypes, 'Tie::IxHash', - "none" => "No Download", - "csv" => "CSV", - "template" => "Template", + "none" => $i18n->get("No Download"), + "csv" => $i18n->get("CSV"), + "template" => $i18n->get("Template"), ; $tabform->getTab("properties")->radioList( @@ -798,12 +798,10 @@ sub www_download { unless $self->session->user->isInGroup($self->getValue("downloadUserGroup")); # Set filename and mimetype - if ($self->getValue("downloadType") eq "csv") - { + if ($self->getValue("downloadType") eq "csv") { $self->session->http->setFilename($self->getValue("downloadFilename"),"application/octet-stream"); } - else - { + else { $self->session->http->setFilename($self->getValue("downloadFilename"),$self->getValue("downloadMimeType")); } diff --git a/lib/WebGUI/i18n/English/Asset_SQLReport.pm b/lib/WebGUI/i18n/English/Asset_SQLReport.pm index 13638b7b0..cd8270e6b 100644 --- a/lib/WebGUI/i18n/English/Asset_SQLReport.pm +++ b/lib/WebGUI/i18n/English/Asset_SQLReport.pm @@ -301,8 +301,24 @@ will always be false for query5.|, }, 'download type description' => { - message => "The type of download to create.", - lastUpdated => 0, + message => "The type of download to create. No download will prevent a download from being created. CSV will cause a CSV file to be returned. Template will use the Download Template to generate the file to download.", + lastUpdated => 1258417417, + }, + + 'No Download' => { + message => "No Download", + lastUpdated => 1258417417, + }, + + 'CSV' => { + message => "CSV", + lastUpdated => 1258417417, + context => q|Short for Comma Separated Variables|, + }, + + 'Template' => { + message => "Template", + lastUpdated => 1258417417, }, 'download filename' => { @@ -311,8 +327,8 @@ will always be false for query5.|, }, 'download filename description' => { - message => "The filename of the file to download. If left blank, will autogenerate.", - lastUpdated => 0, + message => "The filename of the file to download. If left blank, a name will be created.", + lastUpdated => 1258417288, }, 'download template' => {