protected function getValidationMessage($id)
    {
        switch ($id) {
            case 'integer':
                if ($this->minimum_value < 0) {
                    $text = $this->show_field_title_in_messages
                        ? Swat::_('The %s field must be an integer.')
                        : Swat::_('This field must be an integer.');
                } else {
                    $text = $this->show_field_title_in_messages
                        ? Swat::_('The %s field must be a whole number.')
                        : Swat::_('This field must be a whole number.');
                }
                $message = new SwatMessage($text, 'error');
                break;

            case 'integer-maximum':
                $text = $this->show_field_title_in_messages
                    ? Swat::_('The %s field is too big.')
                    : Swat::_('This field is too big.');

                $message = new SwatMessage($text, 'error');
                break;

            case 'integer-minimum':
                $text = $this->show_field_title_in_messages
                    ? Swat::_('The %s field is too small.')
                    : Swat::_('The this field is too small.');

                $message = new SwatMessage($text, 'error');
                break;

            default:
                $message = parent::getValidationMessage($id);
                break;
        }

        return $message;
    }