// Fix update english key of translations in all files

This commit is contained in:
lLefevre
2012-03-14 12:25:51 +00:00
parent d93eff8834
commit c21bef2acf
553 changed files with 17474 additions and 20745 deletions
@@ -176,7 +176,7 @@ class ReferralProgramModule extends ObjectModel
public static function isEmailExists($email, $getId = false, $checkCustomer = true)
{
if (empty($email) OR !Validate::isEmail($email))
die (Tools::displayError('Email invalid.'));
die (Tools::displayError('E-mail invalid.'));
if ($checkCustomer === true AND Customer::customerExists($email))
return false;
@@ -5,36 +5,42 @@
<title>Message from {shop_name}</title>
</head>
<body>
<table style="font-family:Verdana,sans-serif; font-size:11px; color:#374953; width: 550px;">
<tr>
<td align="left">
<a href="{shop_url}" title="{shop_name}"><img alt="{shop_name}" src="{shop_logo}" style="border:none;" ></a>
</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td align="left"><strong style="color:#8C9CC0;">Congratulations!</strong></td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td align="left" style="background-color:#DB3484; color:#FFF; font-size: 12px; font-weight:bold; padding: 0.5em 1em;">Your sponsored friend, <strong>{sponsored_firstname} {sponsored_lastname}</strong> has placed his or her first order on <a href="{shop_url}" style="color:#FFF; font-size: 12px; font-weight:bold;">{shop_name}</a>!</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td align="left">
We are pleased to offer you a voucher worth {discount_display} (voucher # {discount_name}) that you can use on your next order.
</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td align="left">Best regards,</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td align="center" style="font-size:10px; border-top: 1px solid #D9DADE;">
<a href="{shop_url}" style="color:#DB3484; font-weight:bold; text-decoration:none;">{shop_name}</a> powered by <a href="http://www.prestashop.com/" style="text-decoration:none; color:#374953;">PrestaShop™</a>
</td>
</tr>
</table>
<table style="font-family: Verdana,sans-serif; font-size: 11px; color: #374953; width: 550px;">
<tbody>
<tr>
<td align="left"><a title="{shop_name}" href="{shop_url}"><img style="border: none;" src="{shop_logo}" alt="{shop_name}" /></a></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td align="left"><strong style="color: #8c9cc0;">Congratulations!</strong></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td style="background-color: #db3484; color: #fff; font-size: 12px; font-weight: bold; padding: 0.5em 1em;" align="left">Your referred friend, <strong>{sponsored_firstname} {sponsored_lastname}</strong> has placed his or her first order on <a style="color: #fff; font-size: 12px; font-weight: bold;" href="{shop_url}">{shop_name}</a>!</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td align="left">We are pleased to offer you a voucher worth {discount_display} (voucher # {discount_name}) that you can use on your next order.</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td align="left">Best regards,</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td style="font-size: 10px; border-top: 1px solid #D9DADE;" align="center"><a style="color: #db3484; font-weight: bold; text-decoration: none;" href="{shop_url}">{shop_name}</a> powered by <a style="text-decoration: none; color: #374953;" href="http://www.prestashop.com/">PrestaShop&trade;</a></td>
</tr>
</tbody>
</table>
</body>
</html>
</html>
@@ -1,9 +1,9 @@
Congratulations!
Your sponsored friend, {sponsored_firstname} {sponsored_lastname} has placed his or her first order on {shop_url} !
We are pleased to offer you a voucher worth {discount_display} (voucher # {discount_name}) that you can use on your next order.
{shop_url} réalisé par PrestaShop™
Congratulations!
Your referred friend, {sponsored_firstname} {sponsored_lastname} has placed his or her first order on {shop_url} !
We are pleased to offer you a voucher worth {discount_display} (voucher # {discount_name}) that you can use on your next order.
{shop_url} Powered by PrestaShop™
@@ -5,48 +5,54 @@
<title>Message from {shop_name}</title>
</head>
<body>
<table style="font-family:Verdana,sans-serif; font-size:11px; color:#374953; width: 550px;">
<tr>
<td align="left">
<a href="{shop_url}" title="{shop_name}"><img alt="{shop_name}" src="{shop_logo}" style="border:none;" ></a>
</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td align="left"><strong style="color:#DB3484;">{firstname_friend} {lastname_friend}, join us!</strong></td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td align="left" style="background-color:#DB3484; color:#FFF; font-size: 12px; font-weight:bold; padding: 0.5em 1em;">Your friend <strong>{firstname} {lastname}</strong> wants to sponsor you on <a href="{shop_url}" style="color:#FFF; font-size: 12px; font-weight:bold;">{shop_name}</a>!</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td align="left">
Get sponsored and win a discount voucher of {discount}!
</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td align="left">
<a href="{shop_url}{link}" title="Register" style="font-family:Verdana,sans-serif; font-size:11px; color:#374953;">It's very easy to sign up. Just click here!</a>
</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td align="left">
When signing up, don't forget to provide the e-mail address of your sponsoring friend: {email}.
</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td align="left">Best regards,</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td align="center" style="font-size:10px; border-top: 1px solid #D9DADE;">
<a href="{shop_url}" style="color:#DB3484; font-weight:bold; text-decoration:none;">{shop_name}</a> powered by <a href="http://www.prestashop.com/" style="text-decoration:none; color:#374953;">PrestaShop™</a>
</td>
</tr>
</table>
<table style="font-family: Verdana,sans-serif; font-size: 11px; color: #374953; width: 550px;">
<tbody>
<tr>
<td align="left"><a title="{shop_name}" href="{shop_url}"><img style="border: none;" src="{shop_logo}" alt="{shop_name}" /></a></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td align="left"><strong style="color: #db3484;">{firstname_friend} {lastname_friend}, join us!</strong></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td style="background-color: #db3484; color: #fff; font-size: 12px; font-weight: bold; padding: 0.5em 1em;" align="left">Your friend <strong>{firstname} {lastname}</strong> wants to refer you on <a style="color: #fff; font-size: 12px; font-weight: bold;" href="{shop_url}">{shop_name}</a>!</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td align="left">Get referred and earn a discount voucher of {discount}!</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td align="left"><a style="font-family: Verdana,sans-serif; font-size: 11px; color: #374953;" title="Register" href="{shop_url}{link}">It&#039;s very easy to sign up. Just click here!</a></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td align="left">When signing up, don&#039;t forget to provide the e-mail address of your referring friend: {email}.</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td align="left">Best regards,</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td style="font-size: 10px; border-top: 1px solid #D9DADE;" align="center"><a style="color: #db3484; font-weight: bold; text-decoration: none;" href="{shop_url}">{shop_name}</a> powered by <a style="text-decoration: none; color: #374953;" href="http://www.prestashop.com/">PrestaShop&trade;</a></td>
</tr>
</tbody>
</table>
</body>
</html>
</html>
@@ -1,15 +1,15 @@
{firstname_friend} {lastname_friend}, join us!
Your friend {firstname} {lastname} wants to sponsor you on {shop_url}.
Get sponsored and win a discount voucher of {discount}!
It's very easy to sign up. Just click on the following link:
{shop_url}{link}
When signing up, don't forget to provide the e-mail address of your sponsoring friend: {email}.
{firstname_friend} {lastname_friend}, join us!
Your friend {firstname} {lastname} wants to refer you on {shop_url}.
Get referred and earn a discount voucher of {discount}!
It's very easy to sign up. Just click on the following link:
{shop_url}{link}
When signing up, don't forget to provide the e-mail address of your referring friend: {email}.
{shop_url} powered by PrestaShop™
@@ -5,38 +5,42 @@
<title>Message from {shop_name}</title>
</head>
<body>
<table style="font-family:Verdana,sans-serif; font-size:11px; color:#374953; width: 550px;">
<tr>
<td align="left">
<a href="{shop_url}" title="{shop_name}"><img alt="{shop_name}" src="{shop_logo}" style="border:none;" ></a>
</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td align="left">Hi <strong style="color:#DB3484;">{firstname} {lastname}</strong>,</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td align="left" style="background-color:#DB3484; color:#FFF; font-size: 12px; font-weight:bold; padding: 0.5em 1em;">Sponsorship Program</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td align="left">
We inform you about the generation of a voucher to your name regarding your sponsorship.
</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td align="left">
Here is the code of your voucher : <b>{voucher_num}</b>, with an amount of <b>{voucher_amount}</b>.<br />
Simply copy/paste this code during the payment process for your next order.
</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td align="center" style="font-size:10px; border-top: 1px solid #D9DADE;">
<a href="{shop_url}" style="color:#DB3484; font-weight:bold; text-decoration:none;">{shop_name}</a> powered by <a href="http://www.prestashop.com/" style="text-decoration:none; color:#374953;">PrestaShop™</a>
</td>
</tr>
</table>
<table style="font-family: Verdana,sans-serif; font-size: 11px; color: #374953; width: 550px;">
<tbody>
<tr>
<td align="left"><a title="{shop_name}" href="{shop_url}"><img style="border: none;" src="{shop_logo}" alt="{shop_name}" /></a></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td align="left">Hi <strong style="color: #db3484;">{firstname} {lastname}</strong>,</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td style="background-color: #db3484; color: #fff; font-size: 12px; font-weight: bold; padding: 0.5em 1em;" align="left">Referral Program</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td align="left">We have created a voucher in your name for referring a friend.</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td align="left">Here is the code of your voucher : <strong>{voucher_num}</strong>, with an amount of <strong>{voucher_amount}</strong>.<br /> Simply copy/paste this code during the payment process for your next order.</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td style="font-size: 10px; border-top: 1px solid #D9DADE;" align="center"><a style="color: #db3484; font-weight: bold; text-decoration: none;" href="{shop_url}">{shop_name}</a> powered by <a style="text-decoration: none; color: #374953;" href="http://www.prestashop.com/">PrestaShop&trade;</a></td>
</tr>
</tbody>
</table>
</body>
</html>
@@ -1,12 +1,12 @@
Hi {firstname} {lastname},
We inform you about the generation of a voucher to your name regarding your sponsorship.
Here is the code of your voucher : {voucher_num}, with an amount of {voucher_amount}.
Simply copy/paste this code during the payment process for your next order.
Thank you for shopping at {shop_name}.
{shop_url} powered by PrestaShop™
Hi {firstname} {lastname},
We have created a voucher in your name for referring a friend.
Here is the code of your voucher : {voucher_num}, with an amount of {voucher_amount}.
Simply copy/paste this code during the payment process for your next order.
Thank you for shopping at {shop_name}.
{shop_url} powered by PrestaShop™
+3 -3
View File
@@ -507,7 +507,7 @@ class ReferralProgram extends Module
$customer = new Customer((int)$params['id_customer']);
if (!Validate::isLoadedObject($customer))
die (Tools::displayError('Incorrect object Customer.'));
die (Tools::displayError('Incorrect Customer object.'));
$friends = ReferralProgramModule::getSponsorFriend((int)$customer->id);
if ($id_referralprogram = ReferralProgramModule::isSponsorised((int)$customer->id, true))
@@ -564,7 +564,7 @@ class ReferralProgram extends Module
public function hookOrderConfirmation($params)
{
if ($params['objOrder'] AND !Validate::isLoadedObject($params['objOrder']))
return die(Tools::displayError('Incorrect object Order.'));
return die(Tools::displayError('Incorrect Order object.'));
include_once(dirname(__FILE__).'/ReferralProgramModule.php');
@@ -597,7 +597,7 @@ class ReferralProgram extends Module
$orderState = $params['newOrderStatus'];
$order = new Order((int)($params['id_order']));
if ($order AND !Validate::isLoadedObject($order))
die(Tools::displayError('Incorrect object Order.'));
die(Tools::displayError('Incorrect Order object.'));
include_once(dirname(__FILE__).'/ReferralProgramModule.php');
+1 -1
View File
@@ -1,4 +1,4 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE = array();