]> git.lyx.org Git - lyx.git/blobdiff - src/support/filetools.cpp
InsetArgument: Set ResetsFontEdit to false
[lyx.git] / src / support / filetools.cpp
index 4f681b009e90c7014f55e6f03780306ca8c13569..f991455a271f3d0dde199257deb7a08e83ae3038 100644 (file)
@@ -30,8 +30,9 @@
 #include "support/gettext.h"
 #include "support/lstrings.h"
 #include "support/os.h"
+#include "support/Messages.h"
 #include "support/Package.h"
-#include "support/Path.h"
+#include "support/PathChanger.h"
 #include "support/Systemcall.h"
 #include "support/qstring_helpers.h"
 
@@ -282,7 +283,7 @@ FileName const i18nLibFileSearch(string const & dir, string const & name,
           each po file is able to tell us its name. (JMarc)
        */
 
-       string lang = to_ascii(_(languageTestString()));
+       string lang = getGuiMessages().language();
        string const language = getEnv("LANGUAGE");
        if (!lang.empty() && !language.empty())
                lang = language;