From 26ee74700176baed2f4e81f3d975288be77654e6 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 26 Jan 2005 18:40:59 +0000 Subject: [PATCH] internationalize Asset/File/Image.pm, help for Image Asset --- lib/WebGUI/Asset/File/Image.pm | 6 ++-- lib/WebGUI/Help/Asset.pm | 15 ++++++++ lib/WebGUI/i18n/English/Asset.pm | 60 ++++++++++++++++++++++++++++---- 3 files changed, 71 insertions(+), 10 deletions(-) diff --git a/lib/WebGUI/Asset/File/Image.pm b/lib/WebGUI/Asset/File/Image.pm index 37eff326a..ee2242102 100644 --- a/lib/WebGUI/Asset/File/Image.pm +++ b/lib/WebGUI/Asset/File/Image.pm @@ -144,17 +144,17 @@ sub getEditForm { my $tabform = $self->SUPER::getEditForm(); $tabform->getTab("properties")->integer( -name=>"thumbnailSize", - -label=>"Thumbnail Size", + -label=>WebGUI::International::get('thumbnail size', 'Asset'), -value=>$self->getValue("thumbnailSize") ); $tabform->getTab("properties")->textarea( -name=>"parameters", - -label=>"Parameters", + -label=>WebGUI::International::get('parameters', 'Asset'), -value=>$self->getValue("parameters") ); if ($self->get("filename") ne "") { $tabform->getTab("properties")->readOnly( - -label=>"Thumbnail", + -label=>WebGUI::International::get('52', 'USS'), -value=>'thumbnail' ); } diff --git a/lib/WebGUI/Help/Asset.pm b/lib/WebGUI/Help/Asset.pm index 76d05640b..99566b3d7 100644 --- a/lib/WebGUI/Help/Asset.pm +++ b/lib/WebGUI/Help/Asset.pm @@ -52,6 +52,21 @@ 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/i18n/English/Asset.pm b/lib/WebGUI/i18n/English/Asset.pm index 32f8703be..7ec2ad784 100644 --- a/lib/WebGUI/i18n/English/Asset.pm +++ b/lib/WebGUI/i18n/English/Asset.pm @@ -183,7 +183,7 @@ This is the snippet. Either type it in or copy and paste it into the form field 'file add/edit body' => { message => q|

File Assets are files on your site that are available for users to download. If you would like to have multiple files available, try using a FilePile Asset.

-

Since Files are Assets, so they have all the properties that Assets do.

+

Since Files are Assets, so they have all the properties that Assets do. Below are the properties that are specific to Image Assets:

New file to upload
Enter the path to a file, or use the "Browse" button to find a file on your local hard @@ -194,18 +194,50 @@ If this Asset already contains a file, a link to the file with its associated ic |, context => 'Describing file add/edit form specific fields', - lastUpdated => 1106683499, + lastUpdated => 1106762796, }, + '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|, - lastUpdated => 1106608105, + context => q|label for Asset form|, + lastUpdated => 1106762071, }, 'create package' => { message => q|Make available as package?|, - lastUpdated => 1106608162, + context => q|label for Asset form|, + lastUpdated => 1106762073, }, 'redirect url' => { @@ -228,22 +260,36 @@ If this Asset already contains a file, a link to the file with its associated ic The URL where the user will be redirected.

|, lastUpdated => 1104718231, - context => 'Help text for redirects' + context => 'Help text for redirects', }, 'current file' => { message => q|Current file|, - lastUpdated => 1106609809 + context => q|label for File asset form|, + lastUpdated => 1106762086 }, 'new file' => { message => q|New file to upload|, + context => q|label for File asset form|, + lastUpdated => 1106762088 + }, + + '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, + }, + 'errorEmptyField' => { message => q|

Error: Field name may not be empty.

|, - lastUpdated => 1089039511 + lastUpdated => 1089039511, }, 'Select...' => {