From 0728c5375d451f35f0b830fb92759c282eef696a Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Fri, 25 Feb 2005 00:01:06 +0000 Subject: [PATCH] placed Asset/File/Image help into its own files --- lib/WebGUI/Asset/File/Image.pm | 6 ++-- lib/WebGUI/Help/Asset.pm | 15 --------- lib/WebGUI/Help/Image.pm | 22 +++++++++++++ lib/WebGUI/i18n/English/Asset.pm | 49 ----------------------------- lib/WebGUI/i18n/English/Image.pm | 54 ++++++++++++++++++++++++++++++++ 5 files changed, 79 insertions(+), 67 deletions(-) create mode 100644 lib/WebGUI/Help/Image.pm create mode 100644 lib/WebGUI/i18n/English/Image.pm diff --git a/lib/WebGUI/Asset/File/Image.pm b/lib/WebGUI/Asset/File/Image.pm index 0957f9576..a6d45e9ae 100644 --- a/lib/WebGUI/Asset/File/Image.pm +++ b/lib/WebGUI/Asset/File/Image.pm @@ -116,17 +116,17 @@ sub getEditForm { my $tabform = $self->SUPER::getEditForm(); $tabform->getTab("properties")->integer( -name=>"thumbnailSize", - -label=>WebGUI::International::get('thumbnail size', 'Asset'), + -label=>WebGUI::International::get('thumbnail size', 'Image'), -value=>$self->getValue("thumbnailSize") ); $tabform->getTab("properties")->textarea( -name=>"parameters", - -label=>WebGUI::International::get('parameters', 'Asset'), + -label=>WebGUI::International::get('parameters', 'Image'), -value=>$self->getValue("parameters") ); if ($self->get("filename") ne "") { $tabform->getTab("properties")->readOnly( - -label=>WebGUI::International::get('thumbnail', 'Asset'), + -label=>WebGUI::International::get('thumbnail', 'Image'), -value=>'thumbnail' ); } diff --git a/lib/WebGUI/Help/Asset.pm b/lib/WebGUI/Help/Asset.pm index 2fbb4d1b8..ed3087501 100644 --- a/lib/WebGUI/Help/Asset.pm +++ b/lib/WebGUI/Help/Asset.pm @@ -53,21 +53,6 @@ our $HELP = { ] }, - 'image add/edit' => { - title => 'image add/edit title', - body => 'image add/edit body', - related => [ - { - tag => 'asset fields', - namespace => 'Asset' - }, - { - tag => 'file add/edit', - namespace => 'Asset' - }, - ] - }, - 'metadata manage'=> { title => 'content profiling', body => 'metadata manage body', diff --git a/lib/WebGUI/Help/Image.pm b/lib/WebGUI/Help/Image.pm new file mode 100644 index 000000000..834f32fe4 --- /dev/null +++ b/lib/WebGUI/Help/Image.pm @@ -0,0 +1,22 @@ +package WebGUI::Help::Image; + +our $HELP = { + + 'image add/edit' => { + title => 'image add/edit title', + body => 'image add/edit body', + related => [ + { + tag => 'asset fields', + namespace => 'Asset' + }, + { + tag => 'file add/edit', + namespace => 'File' + }, + ] + }, + +}; + +1; diff --git a/lib/WebGUI/i18n/English/Asset.pm b/lib/WebGUI/i18n/English/Asset.pm index 08bcb41e4..62969cd74 100644 --- a/lib/WebGUI/i18n/English/Asset.pm +++ b/lib/WebGUI/i18n/English/Asset.pm @@ -180,37 +180,6 @@ This is the snippet. Either type it in or copy and paste it into the form field lastUpdated => 1106683569, }, - 'image add/edit title' => { - message => q|Image, Add/Edit|, - lastUpdated => 1106762707, - }, - - 'image add/edit body' => { - message => q|

Image Assets are used to store images that you want displayed on your site.

- -

Since Images are a subset of File Assets, they have the properties that all Assets do as well -as File Assets. Below are the properties that are specific to Image Assets:

- -

Thumbnail size
-A thumbnail of the Image will be created and available for use in -templates. The longest side of the thumbnail will be set to this size -in pixels. It defaults to the value from the sitewide setting. - -

Parameters
-This is a set of extra parameters to the <IMG> tag that is generated for -the image. You can use this to set alignment or to set the text that is displayed -if the image cannot be displayed (such as to a text-only browser). - -

Thumbnail
-If an image is currently stored in the Asset, then its thumbnail will be -shown here. -|, - context => 'Describing image add/edit form specific fields', - lastUpdated => 1106764520, - }, - - - 'extra head tags' => { message => q|Extra HEAD tags|, context => q|label for Asset form|, @@ -258,24 +227,6 @@ The URL where the user will be redirected. lastUpdated => 1107387324, }, - 'thumbnail size' => { - message => q|Thumbnail Size|, - context => q|label for Image asset form|, - lastUpdated => 1106609855 - }, - - 'parameters' => { - message => q|Parameters|, - context => q|label for Image asset form|, - lastUpdated => 1106609855, - }, - - 'thumbnail' => { - message => q|Thumbnail|, - context => q|label for Image asset form|, - lastUpdated => 1106765841 - }, - 'errorEmptyField' => { message => q|

Error: Field name may not be empty.

|, lastUpdated => 1089039511, diff --git a/lib/WebGUI/i18n/English/Image.pm b/lib/WebGUI/i18n/English/Image.pm new file mode 100644 index 000000000..a9a7a4bb7 --- /dev/null +++ b/lib/WebGUI/i18n/English/Image.pm @@ -0,0 +1,54 @@ +package WebGUI::i18n::English::Image; + +our $I18N = { + + 'image add/edit title' => { + message => q|Image, Add/Edit|, + lastUpdated => 1106762707, + }, + + 'image add/edit body' => { + message => q|

Image Assets are used to store images that you want displayed on your site.

+ +

Since Images are a subset of File Assets, they have the properties that all Assets do as well +as File Assets. Below are the properties that are specific to Image Assets:

+ +

Thumbnail size
+A thumbnail of the Image will be created and available for use in +templates. The longest side of the thumbnail will be set to this size +in pixels. It defaults to the value from the sitewide setting. + +

Parameters
+This is a set of extra parameters to the <IMG> tag that is generated for +the image. You can use this to set alignment or to set the text that is displayed +if the image cannot be displayed (such as to a text-only browser). + +

Thumbnail
+If an image is currently stored in the Asset, then its thumbnail will be +shown here. +|, + context => 'Describing image add/edit form specific fields', + lastUpdated => 1106764520, + }, + + 'thumbnail size' => { + message => q|Thumbnail Size|, + context => q|label for Image asset form|, + lastUpdated => 1106609855 + }, + + 'parameters' => { + message => q|Parameters|, + context => q|label for Image asset form|, + lastUpdated => 1106609855, + }, + + 'thumbnail' => { + message => q|Thumbnail|, + context => q|label for Image asset form|, + lastUpdated => 1106765841 + }, + +}; + +1;