]> git.lyx.org Git - lyx.git/commitdiff
Replace lyxerr based warnings and errors with Alert::error() and Alert::warning().
authorAbdelrazak Younes <younes@lyx.org>
Tue, 23 Jan 2007 13:30:30 +0000 (13:30 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 23 Jan 2007 13:30:30 +0000 (13:30 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16826 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/os_win32.C

index daa977b73f8498211065b94aff36bee5efb21614..303def07b6c44d6a2f70edf927f8c949f68f2004 100644 (file)
@@ -22,6 +22,9 @@
 #include "support/path.h"
 
 #include "debug.h"
+#include "gettext.h"
+
+#include "frontends/Alert.h"
 
 #include <boost/assert.hpp>
 
@@ -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<function_pointer>(::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();
        }
 }