From cf211df919f70a12cadb8a7dfa6747ff08f572b7 Mon Sep 17 00:00:00 2001
From: Colin Kuskie
Date: Mon, 8 May 2006 03:09:04 +0000
Subject: [PATCH] more i18n reviewed and update Help for some EMS topics
---
.../Asset/Wobject/EventManagementSystem.pm | 5 +-
.../Help/Asset_EventManagementSystem.pm | 131 ++-----------
.../English/Asset_EventManagementSystem.pm | 184 +++++++-----------
3 files changed, 85 insertions(+), 235 deletions(-)
diff --git a/lib/WebGUI/Asset/Wobject/EventManagementSystem.pm b/lib/WebGUI/Asset/Wobject/EventManagementSystem.pm
index 8bc30f0e9..aad62b5ee 100644
--- a/lib/WebGUI/Asset/Wobject/EventManagementSystem.pm
+++ b/lib/WebGUI/Asset/Wobject/EventManagementSystem.pm
@@ -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');
diff --git a/lib/WebGUI/Help/Asset_EventManagementSystem.pm b/lib/WebGUI/Help/Asset_EventManagementSystem.pm
index 1758e4faa..f2f549b9b 100644
--- a/lib/WebGUI/Help/Asset_EventManagementSystem.pm
+++ b/lib/WebGUI/Help/Asset_EventManagementSystem.pm
@@ -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',
diff --git a/lib/WebGUI/i18n/English/Asset_EventManagementSystem.pm b/lib/WebGUI/i18n/English/Asset_EventManagementSystem.pm
index 1863aef88..265385041 100644
--- a/lib/WebGUI/i18n/English/Asset_EventManagementSystem.pm
+++ b/lib/WebGUI/i18n/English/Asset_EventManagementSystem.pm
@@ -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.
+checkout.url
+A URL to take the user the screen that displays the contents of their shopping cart.
+
+
+checkout.label
+A label to go with checkout.url. The internationalized word "Checkout".
+
+
events_loop
This loop contains all events that have been approved so that users can register.
@@ -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.
-title
-The title of this event.
-
-
-title.url
-A URL to display a list of events that have this event
-
-
-description
-The description of this event.
-
-
-image
-The image assigned to represent this event.
-
-
-price
-The price of this event.
-
-
-numberRegistered
-The number of people currently registered for this event.
-
-
-maximumAttendees
-The number of people allowed to attend this event.
-
-
-seatsRemaining
-The number of available seats remaining for this event.
-
-
-startDate.human
-The date and time this event starts, in human readable format.
-
-
-endDate.human
-The date and time this event ends, in human readable format.
-
-
-eventIsFull
-A boolean that is true if the there are no available seats remaining in this event.
-
-
-purchase.label
-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".
-
-
-purchase.url
-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.
-
-
-checkout.url
-A URL to take the user the screen that displays the contents of their shopping cart.
-
-
-checkout.label
-A label to go with checkout.url. The internationalized word "Checkout".
-
-
paginateBar
A bar to help the user page through sets of Events if several pages of Events exist.
@@ -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.
-search.filters.options
-Javascript for a search interface for Events based on their properties and metadata.
-
-
-search.data.url
-The URL to this Asset.
-
-
-ems.wobject.dir
-The URL the EventManagementSystem area in the WebGUI Extras directory.
-
-
|,
- lastUpdated => 1145421686,
+ lastUpdated => 1147057198,
},
'event template help title' => {
@@ -519,14 +448,34 @@ user.
The title of this event.
+title.url
+A URL to display a list of events that have this event
+
+
description
The description of this event.
+image
+The image assigned to represent this event.
+
+
price
The price of this event.
+sku
+The SKU for this event.
+
+
+sku template
+The SKU templates used to generate the SKU for this event.
+
+
+weight
+The weight associated with materials for this event.
+
+
numberRegistered
The number of people currently registered for this event.
@@ -539,6 +488,14 @@ The number of people allowed to attend this event.
The number of available seats remaining for this event.
+eventIsFull
+A boolean that is true if the there are no available seats remaining in this event.
+
+
+eventIsApproved
+A boolean that is true if the event has been approved.
+
+
startDate.human
The date and time this event starts, in human readable format.
@@ -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.
-eventIsFull
-A boolean that is true if the there are no available seats remaining in this event.
-
-
purchase.label
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.
+purchase.message
+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.
+
+
+purchase.wantToSearch.url
+A URL to search for events that are requirements for this event.
+If the event is full, this variable will be blank.
+
+
+purchase.wantToContinue.url
+A URL to add this event to the cart.
+If the event is full, this variable will be blank.
+
+
+purchase.label
+The internationalized label "Add To Cart".
+If the event is full, this variable will be blank.
+
+
|,
- 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|
-The Event Management System Asset inherits all common variables available to Assets
-and Wobjects, as well as these individual variables:
-
-|,
- 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.
context => q|Body for Add/Edit Event Help|
},
- 'manage events help body' => {
- message => q|
-As the name implies, this screen allows you to manage the events in this instance
-of the Event Management System.
-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.
-The link, Add Event, will allow you to add new events.
-|,
- 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;