mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-12 22:14:35 +00:00
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
This commit is contained in:
parent
e4f2484cb5
commit
fc6492a20f
@ -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
|
// We assume that a tex class exists for local or unknown layouts so this warning
|
||||||
// will only be given for system layouts.
|
// will only be given for system layouts.
|
||||||
if (!baseClass()->isTeXClassAvailable()) {
|
if (!baseClass()->isTeXClassAvailable()) {
|
||||||
docstring desc =
|
docstring const desc =
|
||||||
translateIfPossible(from_utf8(baseClass()->description()));
|
translateIfPossible(from_utf8(baseClass()->description()));
|
||||||
|
docstring const prereqs = from_utf8(baseClass()->prerequisites());
|
||||||
docstring const msg =
|
docstring const msg =
|
||||||
bformat(_("The selected document class\n"
|
bformat(_("The selected document class\n"
|
||||||
"\t%1$s\n"
|
"\t%1$s\n"
|
||||||
"requires external files that are not available.\n"
|
"requires external files that are not available.\n"
|
||||||
"The document class can still be used, but LyX\n"
|
"The document class can still be used, but the\n"
|
||||||
"will not be able to produce output until the\n"
|
"document cannot be compiled until the following\n"
|
||||||
"following prerequisites are installed:\n"
|
"prerequisites are installed:\n"
|
||||||
"\t%2$s\n"
|
"\t%2$s\n"
|
||||||
"See section 3.1.2.2 of the User's Guide for\n"
|
"See section 3.1.2.2 of the User's Guide for\n"
|
||||||
"more information."),
|
"more information."), desc, prereqs);
|
||||||
desc, from_utf8(baseClass()->prerequisites()));
|
|
||||||
frontend::Alert::warning(_("Document class not available"),
|
frontend::Alert::warning(_("Document class not available"),
|
||||||
msg);
|
msg);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user