#include "gettext.h" // _()
#include "frontends/Alert.h"
+using namespace lyx::support;
+
using std::pair;
using std::vector;
using std::make_pair;
if (result.second.find_first_of("#~$% ") == string::npos)
break;
- Alert::alert(_("Filename can't contain any "
- "of these characters:"),
- _("space, '#', '~', '$' or '%'."));
+ Alert::error(_("Invalid filename"),
+ _("Filename can't contain any "
+ "of these characters:\n"
+ "space, '#', '~', '$' or '%'."));
}
return result.second;
if (result.second.find_first_of("#~$% ") == string::npos)
break;
- Alert::alert(_("directory name can't contain any "
- "of these characters:"),
- _("space, '#', '~', '$' or '%'."));
+ Alert::error(_("Invalid filename"),
+ _("Filename can't contain any "
+ "of these characters:\n"
+ "space, '#', '~', '$' or '%'."));
}
return result.second;