mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
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:
parent
ac74abc03c
commit
4a6041664e
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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()
|
||||
{
|
||||
|
@ -17,6 +17,8 @@
|
||||
namespace lyx {
|
||||
namespace support {
|
||||
|
||||
string const & lyx_localedir();
|
||||
|
||||
/* The absolute path to the lyx build directory.
|
||||
* (Make-time value.)
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user