diff --git a/lib/WebGUI/Asset/Wobject/EventManagementSystem.pm b/lib/WebGUI/Asset/Wobject/EventManagementSystem.pm index 55fbd1b9f..4a5baa37a 100644 --- a/lib/WebGUI/Asset/Wobject/EventManagementSystem.pm +++ b/lib/WebGUI/Asset/Wobject/EventManagementSystem.pm @@ -102,7 +102,7 @@ sub _getFieldHash { initial=>1 }, "sku"=>{ - name=>$i18n->echo("Event Number"), + name=>$i18n->get("Event Number"), type=>"text", compare=>"numeric", method=>"text", @@ -163,7 +163,7 @@ sub _acWrapper { $self->getAdminConsole->addSubmenuItem($self->getUrl('func=manageEventMetadata'), $i18n->get('manage event metadata')); $self->getAdminConsole->addSubmenuItem($self->getUrl('func=managePrereqSets'), $i18n->get('manage prerequisite sets')); $self->getAdminConsole->addSubmenuItem($self->getUrl('func=manageRegistrants'), $i18n->get('manage registrants')); - $self->getAdminConsole->addSubmenuItem($self->getUrl('func=manageDiscountPasses'), $i18n->echo('manage discount passes')); + $self->getAdminConsole->addSubmenuItem($self->getUrl('func=manageDiscountPasses'), $i18n->get('manage discount passes')); return $self->getAdminConsole->render($html,$title); } @@ -1833,9 +1833,9 @@ sub www_editEvent { my %passOptions; tie %passOptions, 'Tie::IxHash'; %passOptions = ( - ''=>$i18n->echo('None'), - 'member'=>$i18n->echo('This event is a member of a discount pass.
The selected discount pass should be applied to this event if both are in the user\'s cart.'), - 'defines'=>$i18n->echo('This event defines a discount pass.
If the user adds this event to his/her cart, the associated discount will be applied (upon checkout) to any events that are members of this discount pass.') + ''=>$i18n->get('None'), + 'member'=>$i18n->get('discount pass member'), + 'defines'=>$i18n->get('defines discount pass') ); my %discountPasses; @@ -1850,15 +1850,15 @@ sub www_editEvent { -value=>$self->session->form->get("passType") || $event->{passType} || '', -vertical=>1, -extras=>' onclick="changePassType();" ', - -label=>$i18n->echo('assigned discount pass'), - -hoverHelp=>$i18n->echo('Which Discount Pass will be applied to this event.') + -label=>$i18n->get('discount pass type'), + -hoverHelp=>$i18n->get('discount pass type description') ); $f->selectBox( -name=>'passId', -rowClass=>'" id="passIdRow', # tricky little hack. -options=>\%discountPasses, - -label=>$i18n->echo('assigned discount pass'), - -hoverHelp=>$i18n->echo('Which Discount Pass will be applied to this event.'), + -label=>$i18n->get('assigned discount pass'), + -hoverHelp=>$i18n->get('assigned discount pass description'), -value=>$self->session->form->get("passId") || $event->{passId}, -subtext=>' -' +' ); if ($data->{userId} ne 'new' && $data->{createdByUserId} && $data->{createdByUserId} ne '1') { $f->user( name=>'createdByUserId', - label=>$i18n->echo('user that created this registrant identity'), - hoverHelp=>$i18n->echo('createdByUserId description'), + label=>$i18n->get('created by'), + hoverHelp=>$i18n->get('created by description'), readOnly=>1, value=>$data->{createdByUserId} ); @@ -3307,8 +3307,8 @@ sub www_manageDiscountPasses { "  ".$data->{name}."  (".$data->{type}." ".$data->{amount}." )"; } } - $self->getAdminConsole->addSubmenuItem($self->getUrl('func=editDiscountPass;passId=new'), $i18n->echo('add discount pass')); - return $self->_acWrapper($output, $i18n->echo("manage discount passes")); + $self->getAdminConsole->addSubmenuItem($self->getUrl('func=editDiscountPass;passId=new'), $i18n->get('add discount pass')); + return $self->_acWrapper($output, $i18n->get("manage discount passes")); } @@ -3342,33 +3342,33 @@ sub www_editDiscountPass { } $f->readOnly( name=>'nullPass', - label=>$i18n->echo('discount pass id'), + label=>$i18n->get('discount pass id'), value=>$passId ); $f->text( name=>'name', - label=>$i18n->echo("name"), + label=>$i18n->get("pass name"), value=>$data->{name} ); $f->radioList( name=>'type', options=>{ - percentOff => $i18n->echo("percent off"), - newPrice => $i18n->echo("new price"), - amountOff => $i18n->echo("amount off") + percentOff => $i18n->get("percent off"), + newPrice => $i18n->get("new price"), + amountOff => $i18n->get("amount off") }, - label=>$i18n->echo("discount pass type"), - hoverHelp=>$i18n->echo("The Discount Pass can be one of several types. The 'Percent Off' type reduces the price on applied products by the given percentage. The 'New Price' type sets the price of the product to the given amount. The 'Amount Off' type reduces the price by the given absolute amount. The default type is 'New Price'."), + label=>$i18n->get("discount pass type"), + hoverHelp=>$i18n->get("discount pass type description"), value=>$data->{type} || 'newPrice' ); $f->float( name=>'amount', - label=>$i18n->echo("discount(ed) amount"), - hoverHelp=>$i18n->echo("The amount field can be in one of several unit types, depending on the discount pass type. The 'Percent Off' type is in percent units (for 10% reduction, enter '10'). The 'New Price' and 'Amount Off' types are in an absolute amount of currency. The default value is '0.00'."), + label=>$i18n->get("discount amount"), + hoverHelp=>$i18n->get("discount amount description"), value=>$data->{amount} || '0.00' ); $f->submit; - return $self->_acWrapper($f->print, $i18n->echo("edit discount pass")); + return $self->_acWrapper($f->print, $i18n->get("edit discount pass")); } #------------------------------------------------------------------- diff --git a/lib/WebGUI/i18n/English/Asset_EventManagementSystem.pm b/lib/WebGUI/i18n/English/Asset_EventManagementSystem.pm index 78d653518..e7251b90f 100644 --- a/lib/WebGUI/i18n/English/Asset_EventManagementSystem.pm +++ b/lib/WebGUI/i18n/English/Asset_EventManagementSystem.pm @@ -1313,6 +1313,11 @@ normal templates.|, lastUpdated => 1147050958, }, + 'manage discount passes' => { + message => q|Manage Discount Passes|, + lastUpdated => 1147050958, + }, + 'add registrant' => { message => q|Add Registrant|, lastUpdated => 1147050958, @@ -1358,6 +1363,11 @@ normal templates.|, lastUpdated => 1147050958, }, + 'reset user' => { + message => q|Reset User|, + lastUpdated => 1147050958, + }, + 'continue' => { message => q|Continue|, lastUpdated => 1147050958, @@ -1373,6 +1383,115 @@ normal templates.|, lastUpdated => 1147058499, }, + 'Event Number' => { + message => q|Event Number|, + lastUpdated => 1147058499, + context => q|Synonym for SKU|, + }, + + 'created by' => { + message => q|Created by|, + lastUpdated => 1147058499, + }, + + 'created by description' => { + message => q|The user that created this registrant identity.|, + lastUpdated => 1147058499, + }, + + 'add discount pass' => { + message => q|Add Discount Pass|, + lastUpdated => 1147108858, + }, + + 'discount pass id' => { + message => q|Discount Pass ID|, + lastUpdated => 1147108858, + }, + + 'discount pass type' => { + message => q|Discount Pass Type|, + lastUpdated => 1147108858, + }, + + 'discount pass type description' => { + message => q|The Discount Pass can be one of several types. The 'Percent Off' type reduces the price on applied products by the given percentage. The 'New Price' type sets the price of the product to the given amount. The 'Amount Off' type reduces the price by the given absolute amount. The default type is 'New Price'.|, + lastUpdated => 1147108858, + }, + + 'pass name' => { + message => q|Discount Pass Name|, + lastUpdated => 1147108858, + }, + + 'percent off' => { + message => q|Percent Off|, + lastUpdated => 1147108858, + }, + + 'amount off' => { + message => q|Amount Off|, + lastUpdated => 1147108858, + }, + + 'new price' => { + message => q|New Price|, + lastUpdated => 1147108858, + }, + + 'discount amount' => { + message => q|Discount(ed) Amount|, + lastUpdated => 1147108858, + }, + + 'discount amount description' => { + message => q|The amount field can be in one of several unit types, depending on the discount pass type. The 'Percent Off' type is in percent units (for 10% reduction, enter '10'). The 'New Price' and 'Amount Off' types are in an absolute amount of currency. The default value is '0.00'.|, + lastUpdated => 1147108858, + }, + + 'edit discount pass' => { + message => q|Edit Discount Pass|, + lastUpdated => 1147108858, + }, + + 'None' => { + message => q|None|, + lastUpdated => 1147108858, + }, + + 'discount pass member' => { + message => q|This event is a member of a discount pass.
The selected discount pass should be applied to this event if both are in the user's cart|, + lastUpdated => 1147108858, + }, + + 'defines discount pass' => { + message => q|This event defines a discount pass.
If the user adds this event to his/her cart, the associated discount will be applied (upon checkout) to any events that are members of this discount pass.|, + lastUpdated => 1147108858, + }, + + 'discount pass type' => { + message => q|Discount Pass Type|, + lastUpdated => 1147108858, + }, + + 'discount pass type description' => { + message => q|Define if this event uses a discount pass, and if it does, whether it is one or +is a member of a group that uses a discount pass. For example, you could create a discount pass event called +Attend All Sessions for fifty dollars. Each session may cost twenty-five dollars, but be eligible to be +added to the user's cart and would be discounted if the Attend All Sessions event is also purchased.|, + lastUpdated => 1147108858, + }, + + 'assigned discount pass' => { + message => q|Assigned Discount Pass|, + lastUpdated => 1147108858, + }, + + 'assigned discount pass description' => { + message => q|The Discount Pass, if any, that will be applied to this event.|, + lastUpdated => 1147108858, + }, + }; 1;