Merge pull request #593 from griotteau/patch-translate

Missing translation with wrong password
This commit is contained in:
Manuel Raynaud
2014-08-14 09:24:21 +02:00
4 changed files with 10 additions and 8 deletions

1
core/lib/Thelia/Config/I18n/en_US.php Normal file → Executable file
View File

@@ -405,6 +405,7 @@ return array(
'Warnings' => 'Warnings',
'Weight' => 'Weight',
'Wrong form method, %s expected.' => 'Wrong form method, %s expected.',
'Wrong email or password. Please try again' => 'Wrong email or password. Please try again',
'Yes, I have a password :' => 'Yes, I have a password :',
'You are already registered!' => 'You are already registered!',
'You don\'t need to use commas or other punctuations.' => 'You don\'t need to use commas or other punctuations.',

1
core/lib/Thelia/Config/I18n/fr_FR.php Normal file → Executable file
View File

@@ -405,6 +405,7 @@ return array(
'Warnings' => 'Avertissements',
'Weight' => 'Poids',
'Wrong form method, %s expected.' => 'Méthode HTTP invalide : %s attendu.',
'Wrong email or password. Please try again' => 'Mauvais email ou mot de passe. Veuillez retenter',
'Yes, I have a password :' => 'Oui, j\'ai un mot de passe :',
'You are already registered!' => 'Vous êtes déjà enregistré !',
'You don\'t need to use commas or other punctuations.' => 'Vous n\'avez pas besoin d\'utiliser de virgules ou d\'autres signes de ponctuation',

View File

@@ -314,11 +314,11 @@ class CustomerController extends BaseFrontController
return RedirectResponse::create($successUrl);
} catch (UsernameNotFoundException $e) {
$message = "Wrong email or password. Please try again";
$message = Translator::getInstance()->trans("Wrong email or password. Please try again");
} catch (WrongPasswordException $e) {
$message = "Wrong email or password. Please try again";
$message = Translator::getInstance()->trans("Wrong email or password. Please try again");
} catch (AuthenticationException $e) {
$message = "Wrong email or password. Please try again";
$message = Translator::getInstance()->trans("Wrong email or password. Please try again");
}
}

View File

@@ -154,10 +154,10 @@ return array(
'Price descending' => 'Prix décroissant',
'Proceed checkout' => 'Continuer la commande',
'Product Empty Button' => 'Ajouter mon premier produit',
'Product Empty Message' => 'Ajouter rapidement un produit.
<ol>
<li>Cochez <strong>Nouveau</strong> dans l\'onglet Prix si vous voulez voir votre produit dans la section Nouveautés.</li>
<li>Cochez <strong>En promo</strong> dans l\'onglet Prix si vous voulez voir votre produit dans la section Offres.</li>
'Product Empty Message' => 'Ajouter rapidement un produit.
<ol>
<li>Cochez <strong>Nouveau</strong> dans l\'onglet Prix si vous voulez voir votre produit dans la section Nouveautés.</li>
<li>Cochez <strong>En promo</strong> dans l\'onglet Prix si vous voulez voir votre produit dans la section Offres.</li>
</ol>',
'Product Empty Title' => 'Bienvenue',
'Product Name' => 'Nom du produit',
@@ -243,7 +243,7 @@ return array(
'deliveries' => 'Livraisons',
'for' => 'pour',
'instead of' => 'au lieu de',
'missing or invalid data' => 'Information érronée ou incomplète',
'missing or invalid data' => 'Information erronée ou incomplète',
'per page' => 'par page',
'update' => 'mettre à jour',
'with:' => 'avec :',