mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-23 00:38:01 +00:00
Better error message. Idea Julien's.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33866 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
07c5726aac
commit
ce5603d445
@ -519,6 +519,8 @@ 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 =
|
||||||
|
translateIfPossible(from_utf8(baseClass()->description()));
|
||||||
docstring const msg =
|
docstring const msg =
|
||||||
bformat(_("The document class requested\n"
|
bformat(_("The document class requested\n"
|
||||||
"\t%1$s\n"
|
"\t%1$s\n"
|
||||||
@ -527,9 +529,9 @@ string BufferParams::readToken(Lexer & lex, string const & token,
|
|||||||
"will not be able to produce output until the\n"
|
"will not be able to produce output until the\n"
|
||||||
"following prerequisites are installed:\n"
|
"following prerequisites are installed:\n"
|
||||||
"\t%2$s\n"
|
"\t%2$s\n"
|
||||||
"See section 3.1.2.2 of the User's Guide"
|
"See section 3.1.2.2 of the User's Guide for\n"
|
||||||
"for more information."),
|
"more information."),
|
||||||
from_utf8(classname), from_utf8(baseClass()->prerequisites()));
|
desc, from_utf8(baseClass()->prerequisites()));
|
||||||
frontend::Alert::warning(_("Document class not available"),
|
frontend::Alert::warning(_("Document class not available"),
|
||||||
msg);
|
msg);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user