protected function getValidationMessage($id)
    {
        switch ($id) {
            case 'below-minimum':
                $text = $this->show_field_title_in_messages
                    ? Swat::_('The %%s field must not be less than %s.')
                    : Swat::_('This field must not be less than %s.');

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

            case 'above-maximum':
                $text = $this->show_field_title_in_messages
                    ? Swat::_('The %%s field must not be more than %s.')
                    : Swat::_('This field must not be more than %s.');

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

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

        return $message;
    }