Change error message

modifié:         core/lib/Thelia/Controller/BaseController.php
	modifié:         core/lib/Thelia/Form/FirewallForm.php
This commit is contained in:
Benjamin Perche
2014-07-16 11:04:20 +02:00
parent 081a70ef9d
commit cc4a22b1ed
2 changed files with 20 additions and 2 deletions

View File

@@ -204,7 +204,10 @@ abstract class BaseController extends ContainerAware
if ($aBaseForm instanceof FirewallForm && !$aBaseForm->isFirewallOk()) {
throw new FormValidationException(
$this->getTranslator()->trans(
"You have too much sent this form. Please wait before trying again."
"You've submitted this form too many times. Further submissions will be ignored during %time",
[
"%time" => $aBaseForm->getWaitingTime(),
]
)
);
}