[*] TR : update English translations key for Errors
This commit is contained in:
@@ -350,14 +350,14 @@ class AdminAddressesControllerCore extends AdminController
|
||||
$zip_regexp = str_replace('L', '[a-zA-Z]', $zip_regexp);
|
||||
$zip_regexp = str_replace('C', $country->iso_code, $zip_regexp);
|
||||
if (!preg_match($zip_regexp, $postcode))
|
||||
$this->errors[] = Tools::displayError('Your Postcode / Zip code code is incorrect.').'<br />'.
|
||||
$this->errors[] = Tools::displayError('Your Postal Code/Zip Code is incorrect.').'<br />'.
|
||||
Tools::displayError('Must be typed as follows:').' '.
|
||||
str_replace('C', $country->iso_code, str_replace('N', '0', str_replace('L', 'A', $zip_code_format)));
|
||||
}
|
||||
else if ($zip_code_format)
|
||||
$this->errors[] = Tools::displayError('Postcode / Zip code required.');
|
||||
$this->errors[] = Tools::displayError('Postal Code/Zip Code required.');
|
||||
else if ($postcode && !preg_match('/^[0-9a-zA-Z -]{4,9}$/ui', $postcode))
|
||||
$this->errors[] = Tools::displayError('Your Postcode / Zip code code is incorrect.');
|
||||
$this->errors[] = Tools::displayError('Your Postal Code/Zip Code is incorrect.');
|
||||
}
|
||||
|
||||
/* If this address come from order's edition and is the same as the other one (invoice or delivery one)
|
||||
|
||||
@@ -1359,7 +1359,7 @@ class AdminImportControllerCore extends AdminController
|
||||
|
||||
if ($error)
|
||||
{
|
||||
$this->warnings[] = sprintf(Tools::displayError('Product n°%1$d : the picture cannot be saved : %2$s'), $image->id_product, $url);
|
||||
$this->warnings[] = sprintf(Tools::displayError('Product n°%1$d: the picture cannot be saved: %2$s'), $image->id_product, $url);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -385,7 +385,7 @@ class AdminOrdersControllerCore extends AdminController
|
||||
$this->errors[] = sprintf(Tools::displayError('field %s is required.'), $field);
|
||||
foreach ($rules['size'] as $field => $maxLength)
|
||||
if (Tools::getValue($field) && Tools::strlen(Tools::getValue($field)) > $maxLength)
|
||||
$this->errors[] = sprintf(Tools::displayError('field %1$s is too long. (%2$d chars max)'), $field, $maxLength);
|
||||
$this->errors[] = sprintf(Tools::displayError('field %1$s is too long (%2$d chars max).'), $field, $maxLength);
|
||||
foreach ($rules['validate'] as $field => $function)
|
||||
if (Tools::getValue($field))
|
||||
if (!Validate::$function(htmlentities(Tools::getValue($field), ENT_COMPAT, 'UTF-8')))
|
||||
|
||||
@@ -452,7 +452,7 @@ class AdminRequestSqlControllerCore extends AdminController
|
||||
$e[$key]['attribut'][1]
|
||||
);
|
||||
else
|
||||
$this->errors[] = Tools::displayError('When multiple tables are used, each attribute must be referenced to a table.');
|
||||
$this->errors[] = Tools::displayError('When multiple tables are used, each attribute must refer to a table.');
|
||||
break;
|
||||
|
||||
case 'testedRequired':
|
||||
@@ -460,7 +460,7 @@ class AdminRequestSqlControllerCore extends AdminController
|
||||
break;
|
||||
|
||||
case 'testedUnauthorized':
|
||||
$this->errors[] = sprintf(Tools::displayError('is a unauthorized keyword.'), $e[$key]);
|
||||
$this->errors[] = sprintf(Tools::displayError('is an unauthorized keyword.'), $e[$key]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -367,7 +367,7 @@ class AdminStoresControllerCore extends AdminController
|
||||
$zip_regexp = str_replace('L', '[a-zA-Z]', $zip_regexp);
|
||||
$zip_regexp = str_replace('C', $country->iso_code, $zip_regexp);
|
||||
if (!preg_match($zip_regexp, $postcode))
|
||||
$this->errors[] = Tools::displayError('Your Postcode / Zip code code is incorrect.').'<br />'.Tools::displayError('Must be typed as follows:').' '.
|
||||
$this->errors[] = Tools::displayError('Your Postal Code/Zip Code is incorrect.').'<br />'.Tools::displayError('Must be typed as follows:').' '.
|
||||
str_replace(
|
||||
'C',
|
||||
$country->iso_code,
|
||||
@@ -383,9 +383,9 @@ class AdminStoresControllerCore extends AdminController
|
||||
);
|
||||
}
|
||||
else if ($zip_code_format)
|
||||
$this->errors[] = Tools::displayError('Postcode / Zip code required.');
|
||||
$this->errors[] = Tools::displayError('Postal Code/Zip Code required.');
|
||||
else if ($postcode && !preg_match('/^[0-9a-zA-Z -]{4,9}$/ui', $postcode))
|
||||
$this->errors[] = Tools::displayError('Your Postcode / Zip code code is incorrect.');
|
||||
$this->errors[] = Tools::displayError('Your Postal Code/Zip Code is incorrect.');
|
||||
}
|
||||
|
||||
/* Store hours */
|
||||
|
||||
@@ -421,7 +421,7 @@ class AdminTaxRulesGroupControllerCore extends AdminController
|
||||
if (!$country->checkZipCode($zip_code))
|
||||
{
|
||||
$this->errors[] = sprintf(
|
||||
Tools::displayError('Zip / Postal code is invalid. Must be typed as follows: %s'),
|
||||
Tools::displayError('Zip/Postal code is invalid. Must be typed as follows: %s'),
|
||||
str_replace('C', $country->iso_code, str_replace('N', '0', str_replace('L', 'A', $country->zip_code_format)))
|
||||
);
|
||||
}
|
||||
|
||||
@@ -307,7 +307,7 @@ class AdminTranslationsControllerCore extends AdminController
|
||||
$this->redirect();
|
||||
}
|
||||
else
|
||||
throw new PrestaShopException(sprintf(Tools::displayError('Cannot write this file : "%s"'), $file_path));
|
||||
throw new PrestaShopException(sprintf(Tools::displayError('Cannot write this file: "%s"'), $file_path));
|
||||
}
|
||||
|
||||
public function submitCopyLang()
|
||||
|
||||
Reference in New Issue
Block a user