For cmake case try to use the newly built .gmo files first.

This commit is contained in:
Kornel Benko 2017-08-04 16:06:32 +02:00
parent 37bcf5392a
commit d6285d52e7

View File

@ -193,7 +193,9 @@ void Package::set_temp_dir(FileName const & temp_dir) const
FileName Package::messages_file(string const & c) const
{
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())
res = FileName(top_srcdir().absFileName() + "/po/" + c + ".gmo");
return res;