public function beforeDelete() { if ($this->is_default) { throw new ApplicationException(Lang::get('rainlab.translate::lang.locale.delete_default', ['locale' => $this->name])); } }