diff --git a/src/support/os_win32.C b/src/support/os_win32.C index daa977b73f..303def07b6 100644 --- a/src/support/os_win32.C +++ b/src/support/os_win32.C @@ -22,6 +22,9 @@ #include "support/path.h" #include "debug.h" +#include "gettext.h" + +#include "frontends/Alert.h" #include @@ -343,16 +346,16 @@ GetFolderPath::GetFolderPath() { folder_module_ = LoadLibrary("shfolder.dll"); if (!folder_module_) { - lyxerr << "Unable to load shfolder.dll\nPlease install." - << std::endl; + frontend::Alert::error(_("System file not found"), + _("Unable to load shfolder.dll\nPlease install.")); bail_out(); } folder_path_func_ = reinterpret_cast(::GetProcAddress(folder_module_, "SHGetFolderPathA")); if (folder_path_func_ == 0) { - lyxerr << "Unable to find SHGetFolderPathA in shfolder.dll\n" - "Don't know how to proceed. Sorry." - << std::endl; + frontend::Alert::error(_("System function not found"), + _("Unable to find SHGetFolderPathA in shfolder.dll\n" + "Don't know how to proceed. Sorry.")); bail_out(); } }