mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
For cmake case try to use the newly built .gmo files first.
This commit is contained in:
parent
37bcf5392a
commit
d6285d52e7
@ -193,7 +193,9 @@ void Package::set_temp_dir(FileName const & temp_dir) const
|
|||||||
FileName Package::messages_file(string const & c) const
|
FileName Package::messages_file(string const & c) const
|
||||||
{
|
{
|
||||||
if (in_build_dir_) {
|
if (in_build_dir_) {
|
||||||
FileName res = FileName(lyx_dir().absFileName() + "/../po/" + c + ".gmo");
|
FileName res = FileName(lyx_dir().absFileName() + "/po/" + c + ".gmo");
|
||||||
|
if (!res.isReadableFile())
|
||||||
|
res = FileName(top_srcdir().absFileName() + "../po/" + c + ".gmo");
|
||||||
if (!res.isReadableFile())
|
if (!res.isReadableFile())
|
||||||
res = FileName(top_srcdir().absFileName() + "/po/" + c + ".gmo");
|
res = FileName(top_srcdir().absFileName() + "/po/" + c + ".gmo");
|
||||||
return res;
|
return res;
|
||||||
|
Loading…
Reference in New Issue
Block a user