More top level Asset Help and i18n pruning.

FilePile, WikiPage, Event, RSSCapable.
This commit is contained in:
Colin Kuskie 2007-07-19 22:44:29 +00:00
parent 57e73175ae
commit 804721d0b8
11 changed files with 14 additions and 123 deletions

View file

@ -243,8 +243,9 @@ sub www_edit {
return $self->session->privilege->insufficient() unless $self->canEdit;
return $self->session->privilege->locked() unless $self->canEditIfLocked;
$self->getAdminConsole->setHelp("zip archive add/edit", "Asset_ZipArchive");
my $i18n = WebGUI::International->new($self->session,"Asset_ZipArchive");
return $self->getAdminConsole->render($self->getEditForm->print, $i18n->get('zip archive add/edit title'));
my $i18n = WebGUI::International->new($self->session, 'Asset_Wobject');
my $addEdit = ($self->session->form->process("func") eq 'add') ? $i18n->get('add') : $i18n->get('edit');
return $self->getAdminConsole->render($self->getEditForm->print,$addEdit.' '.$self->getName);
}
#-------------------------------------------------------------------

View file

@ -86,8 +86,9 @@ sub www_edit {
return $self->session->privilege->insufficient() unless $self->canEdit;
return $self->session->privilege->locked() unless $self->canEditIfLocked;
$self->getAdminConsole->setHelp("redirect add/edit", "Asset_Redirect");
my $i18n = WebGUI::International->new($self->session, 'Asset_Redirect');
return $self->getAdminConsole->render($self->getEditForm->print,$i18n->get('redirect add/edit title'));
my $i18n = WebGUI::International->new($self->session, 'Asset_Wobject');
my $addEdit = ($self->session->form->process("func") eq 'add') ? $i18n->get('add') : $i18n->get('edit');
return $self->getAdminConsole->render($self->getEditForm->print,$addEdit.' '.$self->getName);
}
#-------------------------------------------------------------------

View file

@ -3,7 +3,7 @@ package WebGUI::Help::Asset_Event;
our $HELP = {
'event add/edit' => {
title => 'add/edit title',
body => 'add/edit body',
body => '',
isa => [
{
namespace => "Asset_Event",

View file

@ -1,51 +0,0 @@
package WebGUI::Help::Asset_FilePile;
our $HELP = {
'file pile add/edit' => {
title => 'file pile add/edit title',
body => 'file pile add/edit body',
fields => [
{ #isHidden
title => '886',
description => '886 description',
namespace => 'Asset_FilePile',
uiLevel => 6,
},
{ #newWindow
title => '940',
description => '940 description',
namespace => 'Asset_FilePile',
uiLevel => 6,
},
{ #ownerUserId
title => '108',
description => '108 description',
namespace => 'Asset_FilePile',
uiLevel => 6,
},
{ #groupIdView
title => '872',
description => '872 description',
namespace => 'Asset_FilePile',
uiLevel => 6,
},
{ #groupIdEdit
title => '871',
description => '871 description',
namespace => 'Asset_FilePile',
uiLevel => 6,
},
{
title => 'upload files',
description => 'upload files description',
namespace => 'Asset_FilePile',
},
],
related => [
]
},
};
1;

View file

@ -1,30 +0,0 @@
package WebGUI::Help::Asset_RSSCapable;
our $HELP = {
'rss capable' => {
title => 'rss capable title',
body => 'rss capable body',
# use the following to inherit stuff other help entries
isa => [
],
fields => [ #This array is used to list hover help for form fields.
{
title => 'rssEnabled label',
description => 'rssEnabled hoverHelp',
namespace => 'Asset_RSSCapable',
},
{
title => 'rssTemplateId label',
description => 'rssTemplateId hoverHelp',
namespace => 'Asset_RSSCapable',
},
],
variables => [
],
related => [ ##This lists other help articles that are related to this one
],
},
};
1; ##All perl modules must return true

View file

@ -3,7 +3,7 @@ package WebGUI::Help::Asset_WikiPage;
our $HELP = {
'wiki page add/edit' => {
title => 'add/edit title',
body => 'add/edit body',
body => '',
isa => [
],
variables => [

View file

@ -9,16 +9,11 @@ our $I18N = {
},
'add/edit title' => {
message => q{Event, Add/Edit},
message => q{Event, Add/Edit Screen Template Variables},
lastUpdated => 0,
context => q{Title for the Event Add/Edit Help screen},
},
'add/edit body' => {
message => q|The Add/Edit screen for the Event is templatable. The template variables that are available are listed below.|,
lastUpdated => 1171067184,
},
'formHeader' => {
message => q|HTML and Javascript for the start of the Add/Edit Event form.|,
lastUpdated => 1171067211,

View file

@ -89,6 +89,11 @@ our $I18N = {
lastUpdated => 1165517718
},
'file template description' => {
message => q|File templates allow you to display information about the file, such as its filename, size or an icon representing the file type. In addition to the variables below, the File Asset template also has all the default Asset template variables. |,
lastUpdated => 1140196488,
},
'file template asset var title' => {
message => q|File Template, Asset Variables|,
lastUpdated => 1130456105,

View file

@ -1,21 +1,6 @@
package WebGUI::i18n::English::Asset_FilePile;
our $I18N = {
'file pile add/edit title' => {
message => q|File Pile, Add/Edit|,
lastUpdated => 1111735119,
},
'file pile add/edit body' => {
message => q|<p>File Pile Assets allow you to upload lots of files to your site all at once. This is the only function that the File Pile has. If you want to display the files that have been uploaded, you'll need to use another Asset or Wobject.</p>
<p>Unlike most Assets, the File Pile does not share the base set of Asset properties. All File Piles
have the following properties:</p>
|,
context => 'Describing file pile add/edit form specific fields',
lastUpdated => 1146630312,
},
'886 description' => {
message => q|<p>Whether or not this asset will be hidden from the navigation menu and site maps.</p>|,

View file

@ -7,16 +7,6 @@ our $I18N =
'rssTemplateId label' => { message => 'RSS Template', lastUpdate => 1162487361 },
'rssTemplateId hoverHelp' => { message => q|The template to use for the RSS feed of this asset.|, lastUpdate => 1162487361 },
'rss capable title' => {
message => q|RSS Capable|,
lastUpdated => 1162956598
},
'rss capable body' => {
message => q|<p>This Asset is used to enable other Assets to make their own RSS feeds using the RSSFromParent Asset. As a content manager or admin, you will probably never directly use this Asset.</p>|,
lastUpdated => 1162956563
},
'assetName' => { message => 'RSS Capable', lastUpdate => 1162487361 },
};

View file

@ -95,11 +95,6 @@ our $I18N =
lastUpdated => 1165790228,
},
'add/edit body' => {
message => q|The add/edit screen for this Asset is templated. Fields seen by the user will not have hoverHelp. Variables available for use in the template are listed below:|,
lastUpdated => 1165790228,
},
'view title' => {
message => q|Wiki Page, View Template|,
lastUpdated => 1165790228,