// changed English strings, especially focusing on colons harmonization
This commit is contained in:
@@ -81,7 +81,7 @@ class OrderOpcControllerCore extends ParentOrderController
|
||||
die(Tools::jsonEncode($return));
|
||||
}
|
||||
else
|
||||
$this->errors[] = Tools::displayError('Error occurred while updating cart.');
|
||||
$this->errors[] = Tools::displayError('An error occurred while updating the cart.');
|
||||
if (count($this->errors))
|
||||
die('{"hasError" : true, "errors" : ["'.implode('\',\'', $this->errors).'"]}');
|
||||
exit;
|
||||
@@ -317,8 +317,8 @@ class OrderOpcControllerCore extends ParentOrderController
|
||||
'countries' => $countries,
|
||||
'sl_country' => isset($selectedCountry) ? $selectedCountry : 0,
|
||||
'PS_GUEST_CHECKOUT_ENABLED' => Configuration::get('PS_GUEST_CHECKOUT_ENABLED'),
|
||||
'errorCarrier' => Tools::displayError('You must choose a carrier before', false),
|
||||
'errorTOS' => Tools::displayError('You must accept the Terms of Service before', false),
|
||||
'errorCarrier' => Tools::displayError('You must choose a carrier.', false),
|
||||
'errorTOS' => Tools::displayError('You must accept the Terms of Service.', false),
|
||||
'isPaymentStep' => (bool)(isset($_GET['isPaymentStep']) && $_GET['isPaymentStep']),
|
||||
'genders' => Gender::getGenders(),
|
||||
'one_phone_at_least' => (int)Configuration::get('PS_ONE_PHONE_AT_LEAST'),
|
||||
@@ -420,32 +420,32 @@ class OrderOpcControllerCore extends ParentOrderController
|
||||
protected function _getPaymentMethods()
|
||||
{
|
||||
if (!$this->isLogged)
|
||||
return '<p class="warning">'.Tools::displayError('Please sign in to see payment methods').'</p>';
|
||||
return '<p class="warning">'.Tools::displayError('Please sign in to see payment methods.').'</p>';
|
||||
if ($this->context->cart->OrderExists())
|
||||
return '<p class="warning">'.Tools::displayError('Error: this order has already been validated').'</p>';
|
||||
return '<p class="warning">'.Tools::displayError('Error: This order has already been validated.').'</p>';
|
||||
if (!$this->context->cart->id_customer || !Customer::customerIdExistsStatic($this->context->cart->id_customer) || Customer::isBanned($this->context->cart->id_customer))
|
||||
return '<p class="warning">'.Tools::displayError('Error: no customer').'</p>';
|
||||
return '<p class="warning">'.Tools::displayError('Error: No customer.').'</p>';
|
||||
$address_delivery = new Address($this->context->cart->id_address_delivery);
|
||||
$address_invoice = ($this->context->cart->id_address_delivery == $this->context->cart->id_address_invoice ? $address_delivery : new Address($this->context->cart->id_address_invoice));
|
||||
if (!$this->context->cart->id_address_delivery || !$this->context->cart->id_address_invoice || !Validate::isLoadedObject($address_delivery) || !Validate::isLoadedObject($address_invoice) || $address_invoice->deleted || $address_delivery->deleted)
|
||||
return '<p class="warning">'.Tools::displayError('Error: please choose an address').'</p>';
|
||||
return '<p class="warning">'.Tools::displayError('Error: Please select an address.').'</p>';
|
||||
if (count($this->context->cart->getDeliveryOptionList()) == 0 && !$this->context->cart->isVirtualCart())
|
||||
{
|
||||
if ($this->context->cart->isMultiAddressDelivery())
|
||||
return '<p class="warning">'.Tools::displayError('Error: There are no carriers available that deliver to some of your addresses').'</p>';
|
||||
return '<p class="warning">'.Tools::displayError('Error: None of your chosen carriers deliver to some of the addresses you\'ve selected.').'</p>';
|
||||
else
|
||||
return '<p class="warning">'.Tools::displayError('Error: There are no carriers available that deliver to this address').'</p>';
|
||||
return '<p class="warning">'.Tools::displayError('Error: None of your chosen carriers deliver to the address you\'ve selected.').'</p>';
|
||||
}
|
||||
if (!$this->context->cart->getDeliveryOption(null, false) && !$this->context->cart->isVirtualCart())
|
||||
return '<p class="warning">'.Tools::displayError('Error: please choose a carrier').'</p>';
|
||||
return '<p class="warning">'.Tools::displayError('Error: Please choose a carrier.').'</p>';
|
||||
if (!$this->context->cart->id_currency)
|
||||
return '<p class="warning">'.Tools::displayError('Error: no currency has been selected').'</p>';
|
||||
return '<p class="warning">'.Tools::displayError('Error: No currency has been selected.').'</p>';
|
||||
if (!$this->context->cookie->checkedTOS && Configuration::get('PS_CONDITIONS'))
|
||||
return '<p class="warning">'.Tools::displayError('Please accept the Terms of Service').'</p>';
|
||||
return '<p class="warning">'.Tools::displayError('Please accept the Terms of Service.').'</p>';
|
||||
|
||||
/* If some products have disappear */
|
||||
if (!$this->context->cart->checkQuantities())
|
||||
return '<p class="warning">'.Tools::displayError('An item in your cart is no longer available, you cannot proceed with your order.').'</p>';
|
||||
return '<p class="warning">'.Tools::displayError('An item in your cart is no longer available. You cannot proceed with your order.').'</p>';
|
||||
|
||||
/* Check minimal amount */
|
||||
$currency = Currency::getCurrency((int)$this->context->cart->id_currency);
|
||||
@@ -459,11 +459,11 @@ class OrderOpcControllerCore extends ParentOrderController
|
||||
|
||||
/* Bypass payment step if total is 0 */
|
||||
if ($this->context->cart->getOrderTotal() <= 0)
|
||||
return '<p class="center"><input type="button" class="exclusive_large" name="confirmOrder" id="confirmOrder" value="'.Tools::displayError('I confirm my order').'" onclick="confirmFreeOrder();" /></p>';
|
||||
return '<p class="center"><input type="button" class="exclusive_large" name="confirmOrder" id="confirmOrder" value="'.Tools::displayError('I confirm my order.').'" onclick="confirmFreeOrder();" /></p>';
|
||||
|
||||
$return = Hook::exec('displayPayment');
|
||||
if (!$return)
|
||||
return '<p class="warning">'.Tools::displayError('No payment method is available').'</p>';
|
||||
return '<p class="warning">'.Tools::displayError('No payment method is available for use at this time. ').'</p>';
|
||||
return $return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user