make help-open search in examples too

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27860 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2008-12-12 15:56:39 +00:00
parent df29ca02d5
commit 56099b0d89
3 changed files with 11 additions and 5 deletions

View File

@ -530,10 +530,10 @@ Menuset
End
Menu "examples"
Item "Linguistics Manual|L" "help-open ../examples/linguistics.lyx"
Item "Braille Manual|B" "help-open ../examples/Braille.lyx"
Item "XY-pic Manual|X" "help-open ../examples/xypic.lyx"
Item "Multicolumn Manual|M" "help-open ../examples/multicol.lyx"
Item "Linguistics Manual|L" "help-open linguistics"
Item "Braille Manual|B" "help-open Braille"
Item "XY-pic Manual|X" "help-open xypic"
Item "Multicolumn Manual|M" "help-open multicol"
End

View File

@ -1033,7 +1033,10 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
setErrorMessage(from_utf8(N_("Missing argument")));
break;
}
FileName const fname = i18nLibFileSearch("doc", arg, "lyx");
FileName fname = i18nLibFileSearch("doc", arg, "lyx");
if (fname.empty())
fname = i18nLibFileSearch("examples", arg, "lyx");
if (fname.empty()) {
lyxerr << "LyX: unable to find documentation file `"
<< arg << "'. Bad installation?" << endl;

View File

@ -177,6 +177,9 @@ What's new
* DOCUMENTATION AND LOCALIZATION
- LyX is now able to find the translated versions of the manuals in
Help>Specific Manuals.
- LyX man page: Small formatting fix.
- Updated description of math macros (bug 3699).