internationalize Asset/File/Image.pm, help for Image Asset
This commit is contained in:
parent
a6324e30b8
commit
26ee747001
3 changed files with 71 additions and 10 deletions
|
|
@ -144,17 +144,17 @@ sub getEditForm {
|
||||||
my $tabform = $self->SUPER::getEditForm();
|
my $tabform = $self->SUPER::getEditForm();
|
||||||
$tabform->getTab("properties")->integer(
|
$tabform->getTab("properties")->integer(
|
||||||
-name=>"thumbnailSize",
|
-name=>"thumbnailSize",
|
||||||
-label=>"Thumbnail Size",
|
-label=>WebGUI::International::get('thumbnail size', 'Asset'),
|
||||||
-value=>$self->getValue("thumbnailSize")
|
-value=>$self->getValue("thumbnailSize")
|
||||||
);
|
);
|
||||||
$tabform->getTab("properties")->textarea(
|
$tabform->getTab("properties")->textarea(
|
||||||
-name=>"parameters",
|
-name=>"parameters",
|
||||||
-label=>"Parameters",
|
-label=>WebGUI::International::get('parameters', 'Asset'),
|
||||||
-value=>$self->getValue("parameters")
|
-value=>$self->getValue("parameters")
|
||||||
);
|
);
|
||||||
if ($self->get("filename") ne "") {
|
if ($self->get("filename") ne "") {
|
||||||
$tabform->getTab("properties")->readOnly(
|
$tabform->getTab("properties")->readOnly(
|
||||||
-label=>"Thumbnail",
|
-label=>WebGUI::International::get('52', 'USS'),
|
||||||
-value=>'<a href="'.$self->getFileUrl.'"><img src="'.$self->getThumbnailUrl.'?noCache='.time().'" alt="thumbnail" /></a>'
|
-value=>'<a href="'.$self->getFileUrl.'"><img src="'.$self->getThumbnailUrl.'?noCache='.time().'" alt="thumbnail" /></a>'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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'=> {
|
'metadata manage'=> {
|
||||||
title => 'content profiling',
|
title => 'content profiling',
|
||||||
body => 'metadata manage body',
|
body => 'metadata manage body',
|
||||||
|
|
|
||||||
|
|
@ -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' => {
|
'file add/edit body' => {
|
||||||
message => q|<P>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.</P>
|
message => q|<P>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.</P>
|
||||||
|
|
||||||
<P>Since Files are Assets, so they have all the properties that Assets do.</P>
|
<P>Since Files are Assets, so they have all the properties that Assets do. Below are the properties that are specific to Image Assets:</P>
|
||||||
|
|
||||||
<P><b>New file to upload</b><br/>
|
<P><b>New file to upload</b><br/>
|
||||||
Enter the path to a file, or use the "Browse" button to find a file on your local hard
|
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',
|
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|<P>Image Assets are used to store images that you want displayed on your site.</P>
|
||||||
|
|
||||||
|
<P>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:</P>
|
||||||
|
|
||||||
|
<P><b>Thumbnail size</b><br/>
|
||||||
|
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.
|
||||||
|
|
||||||
|
<P><b>Parameters</b><br/>
|
||||||
|
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).
|
||||||
|
|
||||||
|
<P><b>Thumbnail</b><br/>
|
||||||
|
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' => {
|
'extra head tags' => {
|
||||||
message => q|Extra HEAD tags|,
|
message => q|Extra HEAD tags|,
|
||||||
lastUpdated => 1106608105,
|
context => q|label for Asset form|,
|
||||||
|
lastUpdated => 1106762071,
|
||||||
},
|
},
|
||||||
|
|
||||||
'create package' => {
|
'create package' => {
|
||||||
message => q|Make available as package?|,
|
message => q|Make available as package?|,
|
||||||
lastUpdated => 1106608162,
|
context => q|label for Asset form|,
|
||||||
|
lastUpdated => 1106762073,
|
||||||
},
|
},
|
||||||
|
|
||||||
'redirect url' => {
|
'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.
|
The URL where the user will be redirected.
|
||||||
</P> |,
|
</P> |,
|
||||||
lastUpdated => 1104718231,
|
lastUpdated => 1104718231,
|
||||||
context => 'Help text for redirects'
|
context => 'Help text for redirects',
|
||||||
},
|
},
|
||||||
|
|
||||||
'current file' => {
|
'current file' => {
|
||||||
message => q|Current file|,
|
message => q|Current file|,
|
||||||
lastUpdated => 1106609809
|
context => q|label for File asset form|,
|
||||||
|
lastUpdated => 1106762086
|
||||||
},
|
},
|
||||||
|
|
||||||
'new file' => {
|
'new file' => {
|
||||||
message => q|New file to upload|,
|
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
|
lastUpdated => 1106609855
|
||||||
},
|
},
|
||||||
|
|
||||||
|
'parameters' => {
|
||||||
|
message => q|Parameters|,
|
||||||
|
context => q|label for Image asset form|,
|
||||||
|
lastUpdated => 1106609855,
|
||||||
|
},
|
||||||
|
|
||||||
'errorEmptyField' => {
|
'errorEmptyField' => {
|
||||||
message => q|<p><b>Error: Field name may not be empty.</b></p>|,
|
message => q|<p><b>Error: Field name may not be empty.</b></p>|,
|
||||||
lastUpdated => 1089039511
|
lastUpdated => 1089039511,
|
||||||
},
|
},
|
||||||
|
|
||||||
'Select...' => {
|
'Select...' => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue