Fix for bug 3321. Changed error message.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17844 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2007-04-17 17:57:57 +00:00
parent c640f9613f
commit 4fddff272f

View File

@ -435,8 +435,12 @@ string const BufferParams::readToken(LyXLex & lex, string const & token)
// the layout file will be correctly loaded later. // the layout file will be correctly loaded later.
if (!getLyXTextClass().isTeXClassAvailable()) { if (!getLyXTextClass().isTeXClassAvailable()) {
docstring const msg = docstring const msg =
bformat(_("The document uses a missing " bformat(_("The layout file requested by this document,\n"
"TeX class \"%1$s\".\n"), from_utf8(classname)); "%1$s.layout,\n"
"is not usable. This is probably because a LaTeX\n"
"class or style file required by it is not\n"
"available. See the Customization documentation\n"
"for more information.\n"), from_utf8(classname));
Alert::warning(_("Document class not available"), Alert::warning(_("Document class not available"),
msg + _("LyX will not be able to produce output.")); msg + _("LyX will not be able to produce output."));
} }