]> git.lyx.org Git - features.git/commitdiff
get_locale_dir(): add a fallback to po/ driectory in source tree in case LyX xas...
authorAbdelrazak Younes <younes@lyx.org>
Tue, 24 Jun 2008 12:43:30 +0000 (12:43 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 24 Jun 2008 12:43:30 +0000 (12:43 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25377 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/Package.cpp

index 80615ed5cd831be4fb300e82fe909efaaf270993..d97cbf9df6476931f9158f365655c9559b9990ec 100644 (file)
@@ -363,6 +363,12 @@ FileName const get_locale_dir(FileName const & system_support_dir)
        if (path.exists() && path.isDirectory())
                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();
 }