// changed English strings, especially focusing on colons harmonization
This commit is contained in:
@@ -123,11 +123,11 @@ class AddressControllerCore extends FrontController
|
||||
|
||||
// Check page token
|
||||
if ($this->context->customer->isLogged() && !$this->isTokenValid())
|
||||
$this->errors[] = Tools::displayError('Invalid token');
|
||||
$this->errors[] = Tools::displayError('Invalid token.');
|
||||
|
||||
// Check phone
|
||||
if (Configuration::get('PS_ONE_PHONE_AT_LEAST') && !Tools::getValue('phone') && !Tools::getValue('phone_mobile'))
|
||||
$this->errors[] = Tools::displayError('You must register at least one phone number');
|
||||
$this->errors[] = Tools::displayError('You must register at least one phone number.');
|
||||
if ($address->id_country)
|
||||
{
|
||||
// Check country
|
||||
@@ -135,7 +135,7 @@ class AddressControllerCore extends FrontController
|
||||
throw new PrestaShopException('Country cannot be loaded with address->id_country');
|
||||
|
||||
if ((int)$country->contains_states && !(int)$address->id_state)
|
||||
$this->errors[] = Tools::displayError('This country requires a state selection.');
|
||||
$this->errors[] = Tools::displayError('This country requires you to chose a State.');
|
||||
|
||||
// US customer: normalize the address
|
||||
if ($address->id_country == Country::getByIso('US'))
|
||||
@@ -154,22 +154,22 @@ class AddressControllerCore extends FrontController
|
||||
{
|
||||
if (!$country->checkZipCode($postcode))
|
||||
$this->errors[] = sprintf(
|
||||
Tools::displayError('Zip/Postal code is invalid. Must be typed as follows: %s'),
|
||||
Tools::displayError('The Zip/Postal code you\'ve entered is invalid. It must follow this format: %s'),
|
||||
str_replace('C', $country->iso_code, str_replace('N', '0', str_replace('L', 'A', $country->zip_code_format)))
|
||||
);
|
||||
}
|
||||
else if ($zip_code_format)
|
||||
$this->errors[] = Tools::displayError('Zip/Postal code is required.');
|
||||
$this->errors[] = Tools::displayError('A Zip / Postal code is required.');
|
||||
else if ($postcode && !preg_match('/^[0-9a-zA-Z -]{4,9}$/ui', $postcode))
|
||||
$this->errors[] = sprintf(
|
||||
Tools::displayError('Zip/Postal code is invalid. Must be typed as follows: %s'),
|
||||
Tools::displayError('The Zip/Postal code you\'ve entered is invalid. It must follow this format: %s'),
|
||||
str_replace('C', $country->iso_code, str_replace('N', '0', str_replace('L', 'A', $country->zip_code_format)))
|
||||
);
|
||||
}
|
||||
|
||||
// Check country DNI
|
||||
if ($country->isNeedDni() && (!Tools::getValue('dni') || !Validate::isDniLite(Tools::getValue('dni'))))
|
||||
$this->errors[] = Tools::displayError('Identification number is incorrect or has already been used.');
|
||||
$this->errors[] = Tools::displayError('The identification number is incorrect or has already been used.');
|
||||
else if (!$country->isNeedDni())
|
||||
$address->dni = null;
|
||||
}
|
||||
@@ -187,7 +187,7 @@ class AddressControllerCore extends FrontController
|
||||
AND id_address != '.(int)$id_address.'
|
||||
AND id_customer = '.(int)$this->context->customer->id.'
|
||||
AND deleted = 0') > 0)
|
||||
$this->errors[] = sprintf(Tools::displayError('The alias "%s" is already used, please chose another one.'), Tools::safeOutput($_POST['alias']));
|
||||
$this->errors[] = sprintf(Tools::displayError('The alias "%s" has already been used. Please select another one.'), Tools::safeOutput($_POST['alias']));
|
||||
}
|
||||
|
||||
// Check the requires fields which are settings in the BO
|
||||
|
||||
Reference in New Issue
Block a user