get_locale_dir(): add a fallback to po/ driectory in source tree in case LyX xas launched with '-sysdir' on a source tree lib/

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25377 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-06-24 12:43:30 +00:00
parent 14d00c9d24
commit bcfedd4112

View File

@ -363,6 +363,12 @@ FileName const get_locale_dir(FileName const & system_support_dir)
if (path.exists() && path.isDirectory()) if (path.exists() && path.isDirectory())
return path; return path;
// 4. Search for source tree "po/" in case LyX was launched with
// '-sysdir' argument.
path.set(addPath(system_support_dir.absFilename(), "../po"));
if (path.exists() && path.isDirectory())
return path;
return FileName(); return FileName();
} }