From 24b1682be3f1b70247deb0681749c189e0e56324 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Mon, 3 May 2010 10:26:50 -0700 Subject: [PATCH] i18n for the PayDriver summary variables. --- lib/WebGUI/Help/PayDriver.pm | 42 ++++++++++++++++++++++++++++ lib/WebGUI/i18n/English/PayDriver.pm | 14 ++++++++++ lib/WebGUI/i18n/English/Shop.pm | 6 ++++ 3 files changed, 62 insertions(+) diff --git a/lib/WebGUI/Help/PayDriver.pm b/lib/WebGUI/Help/PayDriver.pm index d28a4c5db..9ea8f6590 100644 --- a/lib/WebGUI/Help/PayDriver.pm +++ b/lib/WebGUI/Help/PayDriver.pm @@ -300,6 +300,48 @@ our $HELP = { ], }, + 'cart summary variables' => { + title => 'cart summary variables', + body => 'cart summary variables help', + isa => [], + fields => [], + private => 1, + variables => [ + { + name => 'shippableItemsInCart', + namespace => 'Shop', + }, + { + name => 'subtotal', + description => 'subtotalPrice help', + namespace => 'Shop', + }, + { + name => 'shipping', + description => 'shippingPrice help', + namespace => 'Shop', + }, + { + name => 'taxes', + description => 'taxes help', + namespace => 'Shop', + }, + { + name => 'inShopCreditAvailable', + description => 'inShopCreditAvailable help', + namespace => 'Shop', + }, + { + name => 'inShopCreditDeduction', + description => 'inShopCreditDeduction help', + namespace => 'Shop', + }, + { + name => 'totalPrice', + description => 'totalPrice help', + namespace => 'Shop', + }, + }; 1; diff --git a/lib/WebGUI/i18n/English/PayDriver.pm b/lib/WebGUI/i18n/English/PayDriver.pm index aece199ba..b79702273 100644 --- a/lib/WebGUI/i18n/English/PayDriver.pm +++ b/lib/WebGUI/i18n/English/PayDriver.pm @@ -93,11 +93,25 @@ our $I18N = { lastUpdated => 0, context => q{Link to begin checkout again after failure}, }, + 'template gone' => { message => q|The template for entering in credentials has been deleted. Please notify the site administrator.|, lastUpdated => 0, context => q|Error message when a template cannot be accessed.| }, + + 'cart summary variables' => { + message => q|Cart Summary Variables|, + lastUpdated => 0, + context => q|Title for a template variable help page.| + }, + + 'cart summary variables help' => { + message => q|These variables should be available in all PayDriver templates, to display the cart summary to the user.|, + lastUpdated => 0, + context => q|Body for a template variable help page.| + }, + }; 1; diff --git a/lib/WebGUI/i18n/English/Shop.pm b/lib/WebGUI/i18n/English/Shop.pm index 616630df4..43696ab3d 100644 --- a/lib/WebGUI/i18n/English/Shop.pm +++ b/lib/WebGUI/i18n/English/Shop.pm @@ -1767,6 +1767,12 @@ our $I18N = { context => q|form label for the cart. Allows user to choose a payment method. Bart Jol for Minister in 2012!| }, + 'shippableItemsInCart' => { + message => q|A boolean which will be true if any item in the cart requires shipping.|, + lastUpdated => 0, + context => q|form label for the cart. Allows user to choose a payment method. Bart Jol for Minister in 2012!| + }, + }; 1;