more i18n

reviewed and update Help for some EMS topics
This commit is contained in:
Colin Kuskie 2006-05-08 03:09:04 +00:00
parent 6d958b2550
commit cf211df919
3 changed files with 85 additions and 235 deletions

View file

@ -1831,14 +1831,13 @@ sub www_editEvent {
$meta->{$field1->{fieldId}}->{fieldData} = $field1->{defaultValues};
}
}
my $i18n3 = WebGUI::International->new($self->session, "Asset");
foreach my $field (@{$fieldList}) {
my $dataType = $meta->{$field->{fieldId}}{dataType};
my $options;
# Add a "Select..." option on top of a select list to prevent from
# saving the value on top of the list when no choice is made.
if($dataType eq "selectList" || $dataType eq "selectBox") {
$options = {"", $i18n3->get("Select")};
$options = {"", $i18n->get("Select", "Asset")};
}
my $val = $self->session->form->process("metadata_".$meta->{$field->{fieldId}}{fieldId},$dataType);
@ -2813,7 +2812,7 @@ sub view {
}
else {
$eventFields{'purchase.url'} = $self->getUrl('func=addToScratchCart;mid='.$event->{'productId'}.';pid='.$event->{'productId'});
$eventFields{'purchase.message'} = "Would you like to see available subevents?";
$eventFields{'purchase.message'} = $i18n->get('see available subevents');
$eventFields{'purchase.wantToSearch.url'} = $self->getUrl('func=search;cfilter_s0=requirement;cfilter_c0=eq;subSearch=1;cfilter_t0='.$event->{productId});
$eventFields{'purchase.wantToContinue.url'} = $self->getUrl('func=addToCart;pid='.$event->{productId});
$eventFields{'purchase.label'} = $i18n->get('add to cart');

View file

@ -4,6 +4,7 @@ package WebGUI::Help::Asset_EventManagementSystem; ## Be sure to change the pack
our $HELP = {
'event management system add/edit' => {
source => 'sub definition',
title => 'add/edit help title',
body => 'add/edit help body',
fields => [
@ -27,6 +28,11 @@ our $HELP = {
description => 'view purchase template description',
namespace => 'Asset_EventManagementSystem',
},
{
title => 'search template',
description => 'search template description',
namespace => 'Asset_EventManagementSystem',
},
{
title => 'paginate after',
description => 'paginate after description',
@ -54,14 +60,6 @@ our $HELP = {
},
],
related => [
{
tag => 'event management system manage events',
namespace => 'Asset_EventManagementSystem',
},
{
tag => 'event management system template',
namespace => 'Asset_EventManagementSystem',
},
{
tag => 'wobjects using',
namespace => 'Asset_Wobject'
@ -74,9 +72,15 @@ our $HELP = {
},
'add/edit event' => {
source => 'sub www_editEvent',
title => 'add/edit event help title',
body => 'add/edit event help body',
fields => [
{
title => 'approve event',
description => 'approve event description',
namespace => 'Asset_EventManagementSystem',
},
{
title => 'add/edit event title',
description => 'add/edit event title description',
@ -133,18 +137,8 @@ our $HELP = {
namespace => 'Asset_EventManagementSystem',
},
{
title => 'add/edit event required events',
description => 'add/edit event required events description',
namespace => 'Asset_EventManagementSystem',
},
{
title => 'add/edit event operator',
description => 'add/edit event title description',
namespace => 'Asset_EventManagementSystem',
},
{
title => 'add/edit event what next',
description => 'add/edit event what next description',
title => 'assigned prerequisite set',
description => 'assigned prerequisite set description',
namespace => 'Asset_EventManagementSystem',
},
],
@ -156,95 +150,8 @@ our $HELP = {
],
},
'event management system manage events' => {
title => 'manage events',
body => 'manage events help body',
fields => [
],
related => [
{
tag => 'add/edit event',
namespace => 'Asset_EventManagementSystem',
},
{
tag => 'event management system add/edit',
namespace => 'Asset_EventManagementSystem',
},
],
},
'event management system asset variables' => {
title => 'ems asset help title',
body => 'ems asset help body',
fields => [
{
title => 'display template',
description => 'display template description',
namespace => 'Asset_EventManagementSystem',
},
{
title => 'checkout template',
description => 'checkout template description',
namespace => 'Asset_EventManagementSystem',
},
{
title => 'manage purchases template',
description => 'manage purchases template description',
namespace => 'Asset_EventManagementSystem',
},
{
title => 'view purchase template',
description => 'view purchase template description',
namespace => 'Asset_EventManagementSystem',
},
{
title => 'paginate after',
description => 'paginate after description',
namespace => 'Asset_EventManagementSystem',
},
{
title => 'group to add events',
description => 'group to add events description',
namespace => 'Asset_EventManagementSystem',
},
{
title => 'group to approve events',
description => 'group to approve events description',
namespace => 'Asset_EventManagementSystem',
},
{
title => 'global prerequisite',
description => 'global prerequisite description',
namespace => 'Asset_EventManagementSystem',
},
{
title => 'global metadata',
description => 'global metadata description',
namespace => 'Asset_EventManagementSystem',
},
],
related => [
{
tag => 'event management system add/edit',
namespace => 'Asset_EventManagementSystem',
},
{
tag => 'wobject template',
namespace => 'Asset_Wobject',
},
{
tag => 'asset template',
namespace => 'Asset',
},
{
tag => 'template language',
namespace => 'Asset_Template',
},
],
},
'event management system template' => {
source => 'sub view',
title => 'template help title',
body => 'template help body',
fields => [
@ -296,10 +203,6 @@ our $HELP = {
tag => 'event management system add/edit',
namespace => 'Asset_EventManagementSystem',
},
{
tag => 'event management system asset variables',
namespace => 'Asset_EventManagementSystem',
},
{
tag => 'template language',
namespace => 'Asset_Template',
@ -317,10 +220,6 @@ our $HELP = {
tag => 'event management system add/edit',
namespace => 'Asset_EventManagementSystem',
},
{
tag => 'event management system asset variables',
namespace => 'Asset_EventManagementSystem',
},
{
tag => 'template language',
namespace => 'Asset_Template',

View file

@ -269,11 +269,6 @@ our $I18N = { ##hashref of hashes
context => q|Label for displaying required events|,
},
'manage events' => {
message => q|Manage Events|,
lastUpdated => 1138903982,
},
'add/edit event error' => {
message => q|ERROR|,
lastUpdated => 1138903982,
@ -387,6 +382,14 @@ our $I18N = { ##hashref of hashes
products are displayed to the user as well as providing a link for managing events
in the system.</p>
<p><b>checkout.url</b><br />
A URL to take the user the screen that displays the contents of their shopping cart.
</p>
<p><b>checkout.label</b><br />
A label to go with checkout.url. The internationalized word "Checkout".
</p>
<p><b>events_loop</b><br />
This loop contains all events that have been approved so that users can register.
</p>
@ -397,70 +400,8 @@ This loop contains all events that have been approved so that users can register
The information for one event that has been processed by its own event template.
</p>
<p><b>title</b><br />
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>
<p><b>image</b><br />
The image assigned to represent this event.
</p>
<p><b>price</b><br />
The price of this event.
</p>
<p><b>numberRegistered</b><br />
The number of people currently registered for this event.
</p>
<p><b>maximumAttendees</b><br />
The number of people allowed to attend this event.
</p>
<p><b>seatsRemaining</b><br />
The number of available seats remaining for this event.
</p>
<p><b>startDate.human</b><br />
The date and time this event starts, in human readable format.
</p>
<p><b>endDate.human</b><br />
The date and time this event ends, in human readable format.
</p>
<p><b>eventIsFull</b><br />
A boolean that is true if the there are no available seats remaining in this event.
</p>
<p><b>purchase.label</b><br />
An internationalized label to display to the user the link for purchasing this event.
If the event is full, the label will be "Sold out".
</p>
<p><b>purchase.url</b><br />
A URL for the user to register for this event and add it to their shopping cart.
If the event is full, the url will be blank.
</p>
</div>
<p><b>checkout.url</b><br />
A URL to take the user the screen that displays the contents of their shopping cart.
</p>
<p><b>checkout.label</b><br />
A label to go with checkout.url. The internationalized word "Checkout".
</p>
<p><b>paginateBar</b><br />
A bar to help the user page through sets of Events if several pages of Events exist.
</p>
@ -489,20 +430,8 @@ A URL to take the user to the screen where purchases can be managed (i.e. added,
An internationalized label to dispaly to the user the link for managing purchases.
</p>
<p><b>search.filters.options</b><br />
Javascript for a search interface for Events based on their properties and metadata.
</p>
<p><b>search.data.url</b><br />
The URL to this Asset.
</p>
<p><b>ems.wobject.dir</b><br />
The URL the EventManagementSystem area in the WebGUI Extras directory.
</p>
|,
lastUpdated => 1145421686,
lastUpdated => 1147057198,
},
'event template help title' => {
@ -519,14 +448,34 @@ user.</p>
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>
<p><b>image</b><br />
The image assigned to represent this event.
</p>
<p><b>price</b><br />
The price of this event.
</p>
<p><b>sku</b><br />
The SKU for this event.
</p>
<p><b>sku template</b><br />
The SKU templates used to generate the SKU for this event.
</p>
<p><b>weight</b><br />
The weight associated with materials for this event.
</p>
<p><b>numberRegistered</b><br />
The number of people currently registered for this event.
</p>
@ -539,6 +488,14 @@ The number of people allowed to attend this event.
The number of available seats remaining for this event.
</p>
<p><b>eventIsFull</b><br />
A boolean that is true if the there are no available seats remaining in this event.
</p>
<p><b>eventIsApproved</b><br />
A boolean that is true if the event has been approved.
</p>
<p><b>startDate.human</b><br />
The date and time this event starts, in human readable format.
</p>
@ -547,10 +504,6 @@ The date and time this event starts, in human readable format.
The date and time this event ends, in human readable format.
</p>
<p><b>eventIsFull</b><br />
A boolean that is true if the there are no available seats remaining in this event.
</p>
<p><b>purchase.label</b><br />
An internationalized label to display to the user the link for purchasing this event.
If the event is full, the label will be "Sold out".
@ -561,8 +514,28 @@ A URL for the user to register for this event and add it to their shopping cart.
If the event is full, the url will be blank.
</p>
<p><b>purchase.message</b><br />
A message to ask the user whether or not they'd like to see subevents for this event.
If the event is full, this variable will be blank.
</p>
<p><b>purchase.wantToSearch.url</b><br />
A URL to search for events that are requirements for this event.
If the event is full, this variable will be blank.
</p>
<p><b>purchase.wantToContinue.url</b><br />
A URL to add this event to the cart.
If the event is full, this variable will be blank.
</p>
<p><b>purchase.label</b><br />
The internationalized label "Add To Cart".
If the event is full, this variable will be blank.
</p>
|,
lastUpdated => 1145421471,
lastUpdated => 1147056988,
},
'manage purchases template help title' => {
@ -852,28 +825,11 @@ Messages from the system about the number and type of results being displayed.
lastUpdated => 1145655811,
},
'ems asset help title' => {
message => q|EMS Asset Template Variables|,
lastUpdated => 1140465899,
},
'ems asset help body' => {
message => q|
<p>The Event Management System Asset inherits all common variables available to Assets
and Wobjects, as well as these individual variables:</p>
|,
lastUpdated => 1145465299,
},
'event template help title' => {
message => q|Event Management System Event Template|,
lastUpdated => 1140465899,
},
'add/edit event help title' => {
message => q|Add/Edit Event|,
lastUpdated => 1140469726,
@ -895,20 +851,6 @@ for this event.</p>
context => q|Body for Add/Edit Event Help|
},
'manage events help body' => {
message => q|
<p>As the name implies, this screen allows you to manage the events in this instance
of the Event Management System.</p>
<p>The table of events will provide you with a quick overview of the events in the system,
by title, price and status (approved or pending approval). The icon bar for each event
allows you to edit events, delete events, or change their order.</p>
<p>The link, Add Event, will allow you to add new events.</p>
|,
lastUpdated => 1140475291,
context => q|Body for Add/Edit Event Help|
},
#If the help file documents an Asset, it must include an assetName key
#If the help file documents an Macro, it must include an macroName key
#For all other types, use topicName
@ -1282,6 +1224,16 @@ normal templates.|,
lastUpdated => 1147050958,
},
'see available subevents' => {
message => q|Would you like to see available subevents?|,
lastUpdated => 1147050958,
},
'manage events' => {
message => q|Manage Events|,
lastUpdated => 1147050958,
},
};
1;