diff --git a/core/lib/Thelia/Action/Customer.php b/core/lib/Thelia/Action/Customer.php
index 464f7cf20..9fee8b69e 100755
--- a/core/lib/Thelia/Action/Customer.php
+++ b/core/lib/Thelia/Action/Customer.php
@@ -60,7 +60,7 @@ class Customer extends BaseAction implements EventSubscriberInterface
}
- public function updateProfil(CustomerCreateOrUpdateEvent $event)
+ public function updateProfile(CustomerCreateOrUpdateEvent $event)
{
$customer = $event->getCustomer();
@@ -166,7 +166,7 @@ class Customer extends BaseAction implements EventSubscriberInterface
return array(
TheliaEvents::CUSTOMER_CREATEACCOUNT => array('create', 128),
TheliaEvents::CUSTOMER_UPDATEACCOUNT => array('modify', 128),
- TheliaEvents::CUSTOMER_UPDATEPROFIL => array('updateProfil', 128),
+ TheliaEvents::CUSTOMER_UPDATEPROFILE => array('updateProfile', 128),
TheliaEvents::CUSTOMER_LOGOUT => array('logout', 128),
TheliaEvents::CUSTOMER_LOGIN => array('login', 128),
TheliaEvents::CUSTOMER_DELETEACCOUNT => array('delete', 128),
diff --git a/core/lib/Thelia/Config/Resources/form.xml b/core/lib/Thelia/Config/Resources/form.xml
index dda9be749..ecd530b69 100644
--- a/core/lib/Thelia/Config/Resources/form.xml
+++ b/core/lib/Thelia/Config/Resources/form.xml
@@ -9,7 +9,7 @@
-
+
diff --git a/core/lib/Thelia/Controller/Front/CustomerController.php b/core/lib/Thelia/Controller/Front/CustomerController.php
index 41fbe196f..2bb01a94a 100755
--- a/core/lib/Thelia/Controller/Front/CustomerController.php
+++ b/core/lib/Thelia/Controller/Front/CustomerController.php
@@ -33,7 +33,7 @@ use Thelia\Form\CustomerCreateForm;
use Thelia\Form\CustomerLogin;
use Thelia\Form\CustomerLostPasswordForm;
use Thelia\Form\CustomerPasswordUpdateForm;
-use Thelia\Form\CustomerProfilUpdateForm;
+use Thelia\Form\CustomerProfileUpdateForm;
use Thelia\Form\Exception\FormValidationException;
use Thelia\Model\Customer;
use Thelia\Core\Event\TheliaEvents;
@@ -149,10 +149,10 @@ class CustomerController extends BaseFrontController
'newsletter' => null !== NewsletterQuery::create()->findOneByEmail($customer->getEmail()),
);
- $customerProfilUpdateForm = new CustomerProfilUpdateForm($this->getRequest(), 'form', $data);
+ $customerProfileUpdateForm = new CustomerProfileUpdateForm($this->getRequest(), 'form', $data);
// Pass it to the parser
- $this->getParserContext()->addForm($customerProfilUpdateForm);
+ $this->getParserContext()->addForm($customerProfileUpdateForm);
}
public function updatePasswordAction()
@@ -169,7 +169,7 @@ class CustomerController extends BaseFrontController
$customerChangeEvent = $this->createEventInstance($form->getData());
$customerChangeEvent->setCustomer($customer);
- $this->dispatch(TheliaEvents::CUSTOMER_UPDATEPROFIL, $customerChangeEvent);
+ $this->dispatch(TheliaEvents::CUSTOMER_UPDATEPROFILE, $customerChangeEvent);
$this->redirectSuccess($customerPasswordUpdateForm);
@@ -198,17 +198,17 @@ class CustomerController extends BaseFrontController
$message = false;
- $customerProfilUpdateForm = new CustomerProfilUpdateForm($this->getRequest());
+ $customerProfileUpdateForm = new CustomerProfileUpdateForm($this->getRequest());
try {
$customer = $this->getSecurityContext()->getCustomerUser();
$newsletterOldEmail = $customer->getEmail();
- $form = $this->validateForm($customerProfilUpdateForm, "post");
+ $form = $this->validateForm($customerProfileUpdateForm, "post");
$customerChangeEvent = $this->createEventInstance($form->getData());
$customerChangeEvent->setCustomer($customer);
- $this->dispatch(TheliaEvents::CUSTOMER_UPDATEPROFIL, $customerChangeEvent);
+ $this->dispatch(TheliaEvents::CUSTOMER_UPDATEPROFILE, $customerChangeEvent);
$updatedCustomer = $customerChangeEvent->getCustomer();
@@ -234,7 +234,7 @@ class CustomerController extends BaseFrontController
$this->processLogin($updatedCustomer);
- $this->redirectSuccess($customerProfilUpdateForm);
+ $this->redirectSuccess($customerProfileUpdateForm);
} catch (FormValidationException $e) {
$message = sprintf("Please check your input: %s", $e->getMessage());
@@ -245,10 +245,10 @@ class CustomerController extends BaseFrontController
if ($message !== false) {
Tlog::getInstance()->error(sprintf("Error during customer modification process : %s.", $message));
- $customerProfilUpdateForm->setErrorMessage($message);
+ $customerProfileUpdateForm->setErrorMessage($message);
$this->getParserContext()
- ->addForm($customerProfilUpdateForm)
+ ->addForm($customerProfileUpdateForm)
->setGeneralError($message)
;
}
diff --git a/core/lib/Thelia/Core/Event/TheliaEvents.php b/core/lib/Thelia/Core/Event/TheliaEvents.php
index f72668fc3..6dbe89e10 100755
--- a/core/lib/Thelia/Core/Event/TheliaEvents.php
+++ b/core/lib/Thelia/Core/Event/TheliaEvents.php
@@ -72,9 +72,9 @@ final class TheliaEvents
const CUSTOMER_UPDATEACCOUNT = "action.updateCustomer";
/**
- * sent on customer account update profil
+ * sent on customer account update profile
*/
- const CUSTOMER_UPDATEPROFIL = "action.updateProfilCustomer";
+ const CUSTOMER_UPDATEPROFILE = "action.updateProfileCustomer";
/**
* sent on customer removal
diff --git a/core/lib/Thelia/Form/CustomerProfilUpdateForm.php b/core/lib/Thelia/Form/CustomerProfileUpdateForm.php
similarity index 97%
rename from core/lib/Thelia/Form/CustomerProfilUpdateForm.php
rename to core/lib/Thelia/Form/CustomerProfileUpdateForm.php
index 471c12432..7df0d2da1 100755
--- a/core/lib/Thelia/Form/CustomerProfilUpdateForm.php
+++ b/core/lib/Thelia/Form/CustomerProfileUpdateForm.php
@@ -26,11 +26,11 @@ use Symfony\Component\Validator\ExecutionContextInterface;
use Thelia\Model\CustomerQuery;
/**
- * Class CustomerProfilUpdateForm
+ * Class CustomerProfileUpdateForm
* @package Thelia\Form
* @author Christophe Laffont
*/
-class CustomerProfilUpdateForm extends CustomerCreateForm
+class CustomerProfileUpdateForm extends CustomerCreateForm
{
protected function buildForm()
diff --git a/templates/default/I18n/en_US.php b/templates/default/I18n/en_US.php
index b301bb505..57930fde7 100755
--- a/templates/default/I18n/en_US.php
+++ b/templates/default/I18n/en_US.php
@@ -33,7 +33,7 @@ return array (
'Questions ? See or F.A.Q.' => 'Questions ? See or F.A.Q.',
'Latest articles' => 'Latest articles',
'No articles currently' => 'No articles currently',
- 'Usefull links' => 'Usefull links',
+ 'Useful links' => 'Useful links',
'Login' => 'Login',
'Follow us' => 'Follow us',
'Newsletter' => 'Newsletter',
@@ -113,11 +113,11 @@ return array (
'Coupon code' => 'Coupon code',
'Ok' => 'Ok',
'Delivery address' => 'Delivery address',
- 'Billing addres' => 'Billing addres',
+ 'Billing address' => 'Billing address',
'Change address' => 'Change address',
'Choose your payment method' => 'Choose your payment method',
'Secure Payment' => 'Secure Payment',
- 'You chose to pay by' => 'You chose to pay by',
+ 'You choose to pay by' => 'You choose to pay by',
'Thank you for the trust you place in us.' => 'Thank you for the trust you place in us.',
'A summary of your order email has been sent to the following address' => 'A summary of your order email has been sent to the following address',
'Your order will be confirmed by us upon receipt of your payment.' => 'Your order will be confirmed by us upon receipt of your payment.',
@@ -139,7 +139,7 @@ return array (
'View order %ref as pdf document' => 'View order %ref as pdf document',
'Order details' => 'Order details',
'You don\'t have orders yet.' => 'You don\'t have orders yet.',
- 'Update Profil' => 'Update Profil',
+ 'Update Profile' => 'Update Profile',
'Personal Informations' => 'Personal Informations',
'Select Title' => 'Select Title',
'Update' => 'Update',
@@ -152,5 +152,42 @@ return array (
'Select Country' => 'Select Country',
'Create' => 'Create',
'Related' => 'Related',
+ 'The page cannot be found' => 'The page cannot be found',
+ 'What\'s your name?' => 'What\'s your name?',
+ 'So I can get back to you.' => 'So I can get back to you.',
+ 'The subject of your message.' => 'The subject of your message.',
+ 'And your message...' => 'And your message...',
+ 'This email already exists.' => 'This email already exists.',
+ 'Address label' => 'Address label',
+ 'Title' => 'Title',
+ 'First Name' => 'First Name',
+ 'Last Name' => 'Last Name',
+ 'Company Name' => 'Company Name',
+ 'Street Address' => 'Street Address',
+ 'Address Line 2' => 'Address Line 2',
+ 'Address Line 3' => 'Address Line 3',
+ 'City' => 'City',
+ 'Zip code' => 'Zip code',
+ 'Country' => 'Country',
+ 'Phone' => 'Phone',
+ 'Cellphone' => 'Cellphone',
+ 'Make this address as my primary address' => 'Make this address as my primary address',
+ 'Full Name' => 'Full Name',
+ 'Your Email Address' => 'Your Email Address',
+ 'Subject' => 'Subject',
+ 'Your Message' => 'Your Message',
+ 'Please enter your email address' => 'Please enter your email address',
+ 'No, I am a new customer.' => 'No, I am a new customer.',
+ 'Yes, I have a password :' => 'Yes, I have a password :',
+ 'Please enter your password' => 'Please enter your password',
+ 'This value should not be blank.' => 'This value should not be blank.',
+ 'A user already exists with this email address. Please login or if you\'ve forgotten your password, go to Reset Your Password.' => 'A user already exists with this email address. Please login or if you\'ve forgotten your password, go to Reset Your Password.',
+ 'This email does not exists' => 'This email does not exists',
+ 'Current Password' => 'Current Password',
+ 'New Password' => 'New Password',
+ 'Password confirmation' => 'Password confirmation',
+ 'Your current password does not match.' => 'Your current password does not match.',
+ 'Password confirmation is not the same as password field.' => 'Password confirmation is not the same as password field.',
+ 'I would like to receive the newsletter or the latest news.' => 'I would like to receive the newsletter or the latest news.',
)
;
\ No newline at end of file
diff --git a/templates/default/I18n/es_ES.php b/templates/default/I18n/es_ES.php
index cbf0e3a78..5a050319e 100755
--- a/templates/default/I18n/es_ES.php
+++ b/templates/default/I18n/es_ES.php
@@ -33,7 +33,7 @@ return array (
'Questions ? See or F.A.Q.' => '',
'Latest articles' => '',
'No articles currently' => '',
- 'Usefull links' => '',
+ 'Useful links' => '',
'Login' => '',
'Follow us' => '',
'Newsletter' => '',
@@ -113,11 +113,11 @@ return array (
'Coupon code' => '',
'Ok' => '',
'Delivery address' => '',
- 'Billing addres' => '',
+ 'Billing address' => '',
'Change address' => '',
'Choose your payment method' => '',
'Secure Payment' => '',
- 'You chose to pay by' => '',
+ 'You choose to pay by' => '',
'Thank you for the trust you place in us.' => '',
'A summary of your order email has been sent to the following address' => '',
'Your order will be confirmed by us upon receipt of your payment.' => '',
@@ -139,7 +139,7 @@ return array (
'View order %ref as pdf document' => '',
'Order details' => '',
'You don\'t have orders yet.' => '',
- 'Update Profil' => '',
+ 'Update Profile' => '',
'Personal Informations' => '',
'Select Title' => '',
'Update' => '',
@@ -152,5 +152,42 @@ return array (
'Select Country' => '',
'Create' => '',
'Related' => '',
+ 'The page cannot be found' => '',
+ 'What\'s your name?' => '',
+ 'So I can get back to you.' => '',
+ 'The subject of your message.' => '',
+ 'And your message...' => '',
+ 'This email already exists.' => '',
+ 'Address label' => '',
+ 'Title' => '',
+ 'First Name' => '',
+ 'Last Name' => '',
+ 'Company Name' => '',
+ 'Street Address' => '',
+ 'Address Line 2' => '',
+ 'Address Line 3' => '',
+ 'City' => '',
+ 'Zip code' => '',
+ 'Country' => '',
+ 'Phone' => '',
+ 'Cellphone' => '',
+ 'Make this address as my primary address' => '',
+ 'Full Name' => '',
+ 'Your Email Address' => '',
+ 'Subject' => '',
+ 'Your Message' => '',
+ 'Please enter your email address' => '',
+ 'No, I am a new customer.' => '',
+ 'Yes, I have a password :' => '',
+ 'Please enter your password' => '',
+ 'This value should not be blank.' => '',
+ 'A user already exists with this email address. Please login or if you\'ve forgotten your password, go to Reset Your Password.' => '',
+ 'This email does not exists' => '',
+ 'Current Password' => '',
+ 'New Password' => '',
+ 'Password confirmation' => '',
+ 'Your current password does not match.' => '',
+ 'Password confirmation is not the same as password field.' => '',
+ 'I would like to receive the newsletter or the latest news.' => '',
)
;
\ No newline at end of file
diff --git a/templates/default/I18n/fr_FR.php b/templates/default/I18n/fr_FR.php
index cbf0e3a78..fee21dc77 100755
--- a/templates/default/I18n/fr_FR.php
+++ b/templates/default/I18n/fr_FR.php
@@ -1,7 +1,7 @@
'',
+ '+ View All' => 'Tous',
'Thelia V2' => '',
'Skip to content' => '',
'Toggle navigation' => '',
@@ -33,7 +33,7 @@ return array (
'Questions ? See or F.A.Q.' => '',
'Latest articles' => '',
'No articles currently' => '',
- 'Usefull links' => '',
+ 'Useful links' => '',
'Login' => '',
'Follow us' => '',
'Newsletter' => '',
@@ -113,11 +113,11 @@ return array (
'Coupon code' => '',
'Ok' => '',
'Delivery address' => '',
- 'Billing addres' => '',
+ 'Billing address' => '',
'Change address' => '',
'Choose your payment method' => '',
'Secure Payment' => '',
- 'You chose to pay by' => '',
+ 'You choose to pay by' => '',
'Thank you for the trust you place in us.' => '',
'A summary of your order email has been sent to the following address' => '',
'Your order will be confirmed by us upon receipt of your payment.' => '',
@@ -139,7 +139,7 @@ return array (
'View order %ref as pdf document' => '',
'Order details' => '',
'You don\'t have orders yet.' => '',
- 'Update Profil' => '',
+ 'Update Profile' => '',
'Personal Informations' => '',
'Select Title' => '',
'Update' => '',
@@ -152,5 +152,43 @@ return array (
'Select Country' => '',
'Create' => '',
'Related' => '',
+
+ 'The page cannot be found' => '',
+ 'What\'s your name?' => '',
+ 'So I can get back to you.' => '',
+ 'The subject of your message.' => '',
+ 'And your message...' => '',
+ 'This email already exists.' => '',
+ 'Address label' => '',
+ 'Title' => '',
+ 'First Name' => '',
+ 'Last Name' => '',
+ 'Company Name' => '',
+ 'Street Address' => '',
+ 'Address Line 2' => '',
+ 'Address Line 3' => '',
+ 'City' => '',
+ 'Zip code' => '',
+ 'Country' => '',
+ 'Phone' => '',
+ 'Cellphone' => '',
+ 'Make this address as my primary address' => '',
+ 'Full Name' => '',
+ 'Your Email Address' => '',
+ 'Subject' => '',
+ 'Your Message' => '',
+ 'Please enter your email address' => '',
+ 'No, I am a new customer.' => '',
+ 'Yes, I have a password :' => '',
+ 'Please enter your password' => '',
+ 'This value should not be blank.' => '',
+ 'A user already exists with this email address. Please login or if you\'ve forgotten your password, go to Reset Your Password.' => '',
+ 'This email does not exists' => '',
+ 'Current Password' => '',
+ 'New Password' => '',
+ 'Password confirmation' => '',
+ 'Your current password does not match.' => '',
+ 'Password confirmation is not the same as password field.' => '',
+ 'I would like to receive the newsletter or the latest news.' => '',
)
;
\ No newline at end of file
diff --git a/templates/default/I18n/it_IT.php b/templates/default/I18n/it_IT.php
index cbf0e3a78..5a050319e 100755
--- a/templates/default/I18n/it_IT.php
+++ b/templates/default/I18n/it_IT.php
@@ -33,7 +33,7 @@ return array (
'Questions ? See or F.A.Q.' => '',
'Latest articles' => '',
'No articles currently' => '',
- 'Usefull links' => '',
+ 'Useful links' => '',
'Login' => '',
'Follow us' => '',
'Newsletter' => '',
@@ -113,11 +113,11 @@ return array (
'Coupon code' => '',
'Ok' => '',
'Delivery address' => '',
- 'Billing addres' => '',
+ 'Billing address' => '',
'Change address' => '',
'Choose your payment method' => '',
'Secure Payment' => '',
- 'You chose to pay by' => '',
+ 'You choose to pay by' => '',
'Thank you for the trust you place in us.' => '',
'A summary of your order email has been sent to the following address' => '',
'Your order will be confirmed by us upon receipt of your payment.' => '',
@@ -139,7 +139,7 @@ return array (
'View order %ref as pdf document' => '',
'Order details' => '',
'You don\'t have orders yet.' => '',
- 'Update Profil' => '',
+ 'Update Profile' => '',
'Personal Informations' => '',
'Select Title' => '',
'Update' => '',
@@ -152,5 +152,42 @@ return array (
'Select Country' => '',
'Create' => '',
'Related' => '',
+ 'The page cannot be found' => '',
+ 'What\'s your name?' => '',
+ 'So I can get back to you.' => '',
+ 'The subject of your message.' => '',
+ 'And your message...' => '',
+ 'This email already exists.' => '',
+ 'Address label' => '',
+ 'Title' => '',
+ 'First Name' => '',
+ 'Last Name' => '',
+ 'Company Name' => '',
+ 'Street Address' => '',
+ 'Address Line 2' => '',
+ 'Address Line 3' => '',
+ 'City' => '',
+ 'Zip code' => '',
+ 'Country' => '',
+ 'Phone' => '',
+ 'Cellphone' => '',
+ 'Make this address as my primary address' => '',
+ 'Full Name' => '',
+ 'Your Email Address' => '',
+ 'Subject' => '',
+ 'Your Message' => '',
+ 'Please enter your email address' => '',
+ 'No, I am a new customer.' => '',
+ 'Yes, I have a password :' => '',
+ 'Please enter your password' => '',
+ 'This value should not be blank.' => '',
+ 'A user already exists with this email address. Please login or if you\'ve forgotten your password, go to Reset Your Password.' => '',
+ 'This email does not exists' => '',
+ 'Current Password' => '',
+ 'New Password' => '',
+ 'Password confirmation' => '',
+ 'Your current password does not match.' => '',
+ 'Password confirmation is not the same as password field.' => '',
+ 'I would like to receive the newsletter or the latest news.' => '',
)
;
\ No newline at end of file
diff --git a/templates/default/account-update.html b/templates/default/account-update.html
index 6fb50162e..7d9f581a7 100644
--- a/templates/default/account-update.html
+++ b/templates/default/account-update.html
@@ -8,7 +8,7 @@
{$breadcrumbs = [['title' => {intl l="Account"}, 'url'=>{url path="/account"}]]}
{$breadcrumbs = [
['title' => {intl l="Account"}, 'url'=>{url path="/account"}],
- ['title' => {intl l="Update Profil"}, 'url'=>{url path="/account/update"}]
+ ['title' => {intl l="Update Profile"}, 'url'=>{url path="/account/update"}]
]}
{/block}
@@ -17,9 +17,9 @@
- {intl l="Update Profil"}
+ {intl l="Update Profile"}
- {form name="thelia.front.customer.profil.update"}
+ {form name="thelia.front.customer.profile.update"}
{assign var="isPost" value="{$smarty.post|count}"}