protected function prepareError($code)
  {
    $min = $this->getArgValue('min');
    $max = $this->getArgValue('max');
    $error = Translation::get($code);
    $error = str_replace('%min%', $min, $error);
    $error = str_replace('%max%', $max, $error);
    return $error;
  }