X-Git-Url: https://dev.renevier.net/?p=syj.git;a=blobdiff_plain;f=application%2Fcontrollers%2FIdxController.php;h=808603db8368247a5be7d8ab024e9699292e6c58;hp=91606e61ebeb7e93898f2e23b69b931f2986037a;hb=efd74d3cddbac3cb5d317a5e14ba9d70281531c4;hpb=d2d165910aacef01961120326452e616f53991f2 diff --git a/application/controllers/IdxController.php b/application/controllers/IdxController.php index 91606e6..808603d 100644 --- a/application/controllers/IdxController.php +++ b/application/controllers/IdxController.php @@ -115,10 +115,15 @@ class IdxController extends Zend_Controller_Action if ($error->exception instanceof Syj_Exception_ToolargeGeomUpload) { $maxsize = $this->_bytesToString(min($this->_strToBytes(ini_get('upload_max_filesize')), $this->_strToBytes(ini_get('upload_max_filesize')))); - $this->view->errorMsg = $this->view->translate('File too large. File size must not exceed %s', $maxsize); + $errorMsg = __('File too large. File size must not exceed %s', $maxsize); } else if ($error->exception instanceof Syj_Exception_InvalidGeomUpload) { - $this->view->errorMsg = $this->view->translate("Invalid file"); + if ($error->exception->getMessage() === 'uniquepath') { + $errorMsg = __("similar path seems to already exist. Please do not create two exactly identical paths"); + } else { + $errorMsg = __("Invalid file"); + } } + $this->view->errorMsg = $errorMsg; } }