lyx_localedir fix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7410 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2003-07-28 11:43:40 +00:00
parent ac74abc03c
commit 4a6041664e
4 changed files with 12 additions and 6 deletions

View File

@ -1,5 +1,7 @@
2003-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
* messages.C (getLocaleDir): use lyx_localedir()
* lyxlex_pimpl.C (setFile): compress stuff
* buffer.C (writeFile): add some compression stuff

View File

@ -12,6 +12,7 @@
#include "messages.h"
#include "debug.h"
#include "support/filetools.h"
#include "support/path_defines.h"
using namespace lyx::support;
@ -27,7 +28,7 @@ string const & getLocaleDir()
if (locale_dir.empty()) {
locale_dir = GetEnvPath("LYX_LOCALEDIR");
if (locale_dir.empty())
locale_dir = LOCALEDIR;
locale_dir = lyx_localedir();
}
return locale_dir;
}

View File

@ -55,6 +55,12 @@ string const & lyx_top_srcdir()
return lts;
}
} // namespace anon
namespace lyx {
namespace support {
/* The absolute path to the system-level lyx locale directory.
* (Make-time value.)
@ -65,11 +71,6 @@ string const & lyx_localedir()
return ll;
}
} // namespace anon
namespace lyx {
namespace support {
string const & build_lyxdir()
{

View File

@ -17,6 +17,8 @@
namespace lyx {
namespace support {
string const & lyx_localedir();
/* The absolute path to the lyx build directory.
* (Make-time value.)
*/