// changed English strings, especially focusing on colons harmonization
This commit is contained in:
@@ -280,7 +280,7 @@ class AdminShopUrlControllerCore extends AdminController
|
||||
$this->show_toolbar = false;
|
||||
if (isset($this->toolbar_btn['new']))
|
||||
$this->toolbar_btn['new'] = array(
|
||||
'desc' => $this->l('Add new URL'),
|
||||
'desc' => $this->l('Add a new URL'),
|
||||
'href' => $this->context->link->getAdminLink('AdminShopUrl').'&add'.$this->table.'&id_shop='.$this->id_shop,
|
||||
);
|
||||
|
||||
@@ -323,17 +323,17 @@ class AdminShopUrlControllerCore extends AdminController
|
||||
if (Validate::isLoadedObject($object = $this->loadObject()))
|
||||
{
|
||||
if ($object->main)
|
||||
$this->errors[] = Tools::displayError('You can\'t disable a Main URL');
|
||||
$this->errors[] = Tools::displayError('You cannot disable the Main URL.');
|
||||
elseif ($object->toggleStatus())
|
||||
Tools::redirectAdmin(self::$currentIndex.'&conf=5&token='.$token);
|
||||
else
|
||||
$this->errors[] = Tools::displayError('An error occurred while updating status.');
|
||||
$this->errors[] = Tools::displayError('An error occurred while updating the status.');
|
||||
}
|
||||
else
|
||||
$this->errors[] = Tools::displayError('An error occurred while updating status for object.').' <b>'.$this->table.'</b> '.Tools::displayError('(cannot load object)');
|
||||
$this->errors[] = Tools::displayError('An error occurred while updating the status for an object.').' <b>'.$this->table.'</b> '.Tools::displayError('(cannot load object)');
|
||||
}
|
||||
else
|
||||
$this->errors[] = Tools::displayError('You do not have permission to edit here.');
|
||||
$this->errors[] = Tools::displayError('You do not have permission to edit this.');
|
||||
}
|
||||
else
|
||||
$result = parent::postProcess();
|
||||
@@ -348,7 +348,7 @@ class AdminShopUrlControllerCore extends AdminController
|
||||
{
|
||||
$object = $this->loadObject(true);
|
||||
if ($object->canAddThisUrl(Tools::getValue('domain'), Tools::getValue('domain_ssl'), Tools::getValue('physical_uri'), Tools::getValue('virtual_uri')))
|
||||
$this->errors[] = Tools::displayError('A shop URL that use this domain and uri already exists');
|
||||
$this->errors[] = Tools::displayError('A shop URL that uses this domain already exists.');
|
||||
|
||||
$return = parent::processSave();
|
||||
if (!$this->errors)
|
||||
@@ -362,16 +362,16 @@ class AdminShopUrlControllerCore extends AdminController
|
||||
$object = $this->loadObject(true);
|
||||
|
||||
if ($object->canAddThisUrl(Tools::getValue('domain'), Tools::getValue('domain_ssl'), Tools::getValue('physical_uri'), Tools::getValue('virtual_uri')))
|
||||
$this->errors[] = Tools::displayError('A shop URL that use this domain and uri already exists');
|
||||
$this->errors[] = Tools::displayError('A shop URL that uses this domain already exists.');
|
||||
|
||||
if ($object->id && Tools::getValue('main'))
|
||||
$object->setMain();
|
||||
|
||||
if ($object->main && !Tools::getValue('main'))
|
||||
$this->errors[] = Tools::displayError('You can\'t change a Main URL to a non-Main URL, you have to set another URL as Main URL for selected shop');
|
||||
$this->errors[] = Tools::displayError('You cannot change a main URL to a non-main URL. You have to set another URL as your Main URL for the selected shop.');
|
||||
|
||||
if (($object->main || Tools::getValue('main')) && !Tools::getValue('active'))
|
||||
$this->errors[] = Tools::displayError('You can\'t disable a Main URL');
|
||||
$this->errors[] = Tools::displayError('You cannot disable the Main URL.');
|
||||
|
||||
return parent::processAdd();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user