From: Richard Heck Date: Thu, 5 Aug 2010 20:15:29 +0000 (+0000) Subject: Improve the error message a bit. LyX CAN produce output in such cases, X-Git-Tag: 2.0.0~2864 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=fc6492a20fdea65f28f0e24b88cfb7e7c3bf8234;p=features.git Improve the error message a bit. LyX CAN produce output in such cases, just not PDF, etc. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35056 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp index 1b63d4f031..b5327053de 100644 --- a/src/BufferParams.cpp +++ b/src/BufferParams.cpp @@ -555,19 +555,19 @@ string BufferParams::readToken(Lexer & lex, string const & token, // We assume that a tex class exists for local or unknown layouts so this warning // will only be given for system layouts. if (!baseClass()->isTeXClassAvailable()) { - docstring desc = + docstring const desc = translateIfPossible(from_utf8(baseClass()->description())); + docstring const prereqs = from_utf8(baseClass()->prerequisites()); docstring const msg = bformat(_("The selected document class\n" "\t%1$s\n" "requires external files that are not available.\n" - "The document class can still be used, but LyX\n" - "will not be able to produce output until the\n" - "following prerequisites are installed:\n" + "The document class can still be used, but the\n" + "document cannot be compiled until the following\n" + "prerequisites are installed:\n" "\t%2$s\n" "See section 3.1.2.2 of the User's Guide for\n" - "more information."), - desc, from_utf8(baseClass()->prerequisites())); + "more information."), desc, prereqs); frontend::Alert::warning(_("Document class not available"), msg); }