more user-friendly error message

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi 2009-02-06 17:03:12 +00:00
parent 141794f13f
commit 56364fa221

View File

@ -149,7 +149,7 @@ bool wxTextValidator::Validate(wxWindow *parent)
wxString errormsg;
if ( HasFlag(wxFILTER_EMPTY) && val.empty() )
{
errormsg = _("The empty string is not allowed.");
errormsg = _("Please enter a non-empty string.");
}
else if ( !(errormsg = IsValid(val)).empty() )
{