From c39ebce11d62a3a573e9ae5bd2a85d8cb5aa9a9d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 5 Jul 2011 08:29:53 +0000 Subject: [PATCH] Translate submit form --- htdocs/public/members/new.php | 13 +++++++----- htdocs/public/paybox/newpayment.php | 32 ++++++++++++++--------------- 2 files changed, 24 insertions(+), 21 deletions(-) diff --git a/htdocs/public/members/new.php b/htdocs/public/members/new.php index a7ca9ed3cb0..bab3273eb46 100644 --- a/htdocs/public/members/new.php +++ b/htdocs/public/members/new.php @@ -22,7 +22,7 @@ * \file htdocs/public/members/new.php * \ingroup member * \brief Example of form to add a new member - * \version $Id: new.php,v 1.37 2011/07/03 18:30:48 eldy Exp $ + * \version $Id: new.php,v 1.38 2011/07/05 08:29:53 eldy Exp $ * * Note that you can add following constant to change behaviour of page * MEMBER_NEWFORM_AMOUNT Default amount for autosubscribe form @@ -64,7 +64,7 @@ if (empty($conf->adherent->enabled)) accessforbidden('',1,1,1); if (empty($conf->global->MEMBER_ENABLE_PUBLIC)) { - print $langs->trans("Auto subscription form for public visitors has no be enabled"); + print $langs->trans("Auto subscription form for public visitors has no been enabled"); exit; } @@ -236,11 +236,13 @@ if ($action == 'add') { $urlback=DOL_MAIN_URL_ROOT.'/public/paybox/newpayment.php?source=membersubscription&ref='.$adh->ref; if (price2num(GETPOST('amount'))) $urlback.='&amount='.price2num(GETPOST('amount')); + if (GETPOST('email')) $urlback.='&email='.urlencode(GETPOST('email')); } else if ($conf->global->MEMBER_NEWFORM_PAYONLINE == 'paypal') { $urlback=DOL_MAIN_URL_ROOT.'/public/paypal/newpayment.php?source=membersubscription&ref='.$adh->ref; if (price2num(GETPOST('amount'))) $urlback.='&amount='.price2num(GETPOST('amount')); + if (GETPOST('email')) $urlback.='&email='.urlencode(GETPOST('email')); } else { @@ -273,7 +275,7 @@ if ($action == 'added') print $langs->trans("NewMemberbyWeb"); print ''; - llxFooterVierge('$Date: 2011/07/03 18:30:48 $ - $Revision: 1.37 $'); + llxFooterVierge('$Date: 2011/07/05 08:29:53 $ - $Revision: 1.38 $'); exit; } @@ -356,7 +358,7 @@ $morphys["phy"] = $langs->trans("Physical"); $morphys["mor"] = $langs->trans("Moral"); if (empty($conf->global->MEMBER_NEWFORM_FORCEMORPHY)) { - print ''.$langs->trans("MorPhy").' *'."\n"; + print ''.$langs->trans("MorPhy").' *'."\n"; print $html->selectarray("morphy", $morphys, GETPOST('morphy'), 1); print ''."\n"; } @@ -450,6 +452,7 @@ if (! empty($conf->global->MEMBER_NEWFORM_DOLIBARRTURNOVER)) print '