mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-08 10:51:03 +00:00
Issue a warning if thesaurus dir is not set up (as suggested in #9496)
This commit is contained in:
parent
df4e13de06
commit
6fe3dc01e0
@ -47,6 +47,7 @@
|
|||||||
#include "TextMetrics.h"
|
#include "TextMetrics.h"
|
||||||
#include "WordLangTuple.h"
|
#include "WordLangTuple.h"
|
||||||
|
|
||||||
|
#include "frontends/alert.h"
|
||||||
#include "frontends/Application.h"
|
#include "frontends/Application.h"
|
||||||
#include "frontends/Clipboard.h"
|
#include "frontends/Clipboard.h"
|
||||||
#include "frontends/Selection.h"
|
#include "frontends/Selection.h"
|
||||||
@ -2286,6 +2287,13 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
arg += " lang=" + from_ascii(cur.getFont().language()->lang());
|
arg += " lang=" + from_ascii(cur.getFont().language()->lang());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (lyxrc.thesaurusdir_path.empty()) {
|
||||||
|
frontend::Alert::warning(_("Path to thesaurus directory not set!"),
|
||||||
|
_("The path to the thesaurus directory has not been specified.\n"
|
||||||
|
"The thesaurus is not functional.\n"
|
||||||
|
"Please refer to sec. 6.15.1 of the User's Guide for setup\n"
|
||||||
|
"instructions."));
|
||||||
|
}
|
||||||
bv->showDialog("thesaurus", to_utf8(arg));
|
bv->showDialog("thesaurus", to_utf8(arg));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user