[-] BO : you can now remove the english language by whatever mean you like most #PSCFV-5815

This commit is contained in:
DamienMetzger
2012-11-23 15:13:32 +01:00
parent f400a32884
commit 89e207bc4e
@@ -285,9 +285,6 @@ class AdminLanguagesControllerCore extends AdminController
{
if (Validate::isLoadedObject($object = $this->loadObject()) && isset($this->fieldImageSettings))
{
// English is needed by the system (ex. translations)
if ($object->id == Language::getIdByIso('en'))
$this->errors[] = $this->l('You cannot delete the English language because it is a system requirement, you can only deactivate it.');
if ($object->id == Configuration::get('PS_LANG_DEFAULT'))
$this->errors[] = $this->l('You cannot delete the default language');
else if ($object->id == $this->context->language->id)