mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 18:24:48 +00:00
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:
parent
14d00c9d24
commit
bcfedd4112
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user