i18n for sku*, weight

This commit is contained in:
Colin Kuskie 2006-04-27 22:39:05 +00:00
parent 7e6268df8c
commit dcf6d4f595
3 changed files with 72 additions and 7 deletions

View file

@ -1406,7 +1406,7 @@ sub validateEditEventForm {
"description" => $i18n->get("add/edit event description"),
"price" => $i18n->get("add/edit event price"),
"maximumAttendees" => $i18n->get("add/edit event maximum attendees"),
"sku" => "SKU Number"
"sku" => $i18n->get("sku"),
);
my $mdFields = $self->getEventMetaDataFields;
@ -1713,22 +1713,22 @@ sub www_editEvent {
$f->float(
-name => "weight",
-value => $self->session->form->get("weight") || $event->{weight} || 0,
-hoverHelp => "The weight of anything that may be associated with your event.",
-label => "Weight"
-hoverHelp => $i18n->get('weight description'),
-label => $i18n->get('weight'),
);
$f->text(
-name => "sku",
-value => $self->session->form->get("sku") || $event->{sku} || $self->session->id->generate(),
-hoverHelp => "A SKU Number to assign to the event. A Globaly Unique Identifier is generated by default.",
-label => "SKU Number"
-hoverHelp => $i18n->get('sku description'),
-label => $i18n->get('sku'),
);
$f->text(
-name => "skuTemplate",
-value => $self->session->form->get("skuTemplate") || $event->{skuTemplate},
-hoverHelp => "A template to use for assigning SKU numbers.",
-label => "SKU Template"
-hoverHelp => $i18n->get('sku template description'),
-label => $i18n->get('sku template'),
);
$f->dateTime(

View file

@ -102,6 +102,21 @@ our $HELP = {
description => 'add/edit event template description',
namespace => 'Asset_EventManagementSystem',
},
{
title => 'weight',
description => 'weight description',
namespace => 'Asset_EventManagementSystem',
},
{
title => 'sku',
description => 'sku description',
namespace => 'Asset_EventManagementSystem',
},
{
title => 'sku template',
description => 'sku template',
namespace => 'Asset_EventManagementSystem',
},
{
title => 'add/edit event start date',
description => 'add/edit event start date description',

View file

@ -401,6 +401,10 @@ The information for one event that has been processed by its own event template.
The title of this event.
</p>
<p><b>title.url</b><br />
A URL to display a list of events that have this event
</p>
<p><b>description</b><br />
The description of this event.
</p>
@ -1147,6 +1151,52 @@ allows you to edit events, delete events, or change their order.</p>
lastUpdated => 1146075135,
},
'sku template' => {
message => q|SKU Template|,
lastUpdated => 1146170715,
context => q|The label for the sku template field in the edit product screen.|
},
'weight' => {
message => q|Weight|,
lastUpdated => 1146170737,
context => q|Describing the physical weight of an object.|
},
'weight description' => {
message => q|The weight of anything that may be associated with your event.|,
lastUpdated => 1120449422,
},
'sku' => {
message => q|SKU|,
lastUpdated => 1146170838,
context => q|The form label for the SKU (Stock Keeping Unit) field|
},
'sku description' => {
message => q|A SKU Number to assign to the event. A Globaly Unique Identifier is generated by default.|,
lastUpdated => 1146170838,
},
'sku template' => {
message => q|SKU Template|,
lastUpdated => 1146170932,
context => q|The label for the sku template field in the edit event screen.|
},
'sku template description' => {
message => q|This field defines how the SKU for each
product variant will be composed. The syntax is the same as that of
normal templates.|,
lastUpdated => 1146170930,
},
'error' => {
message => q|Error:|,
lastUpdated => 1146170930,
},
};
1;