]> git.lyx.org Git - lyx.git/blobdiff - src/importer.C
Minimal fix needed to give Qt a label dialog again.
[lyx.git] / src / importer.C
index 1a11197aa0c7ba69bc531b2c5b497b6aa1aa1661..bc74a4b8d8f5cad813cee190f5b7c7ebb8e41c1f 100644 (file)
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
 #include "importer.h"
 #include "converter.h"
+#include "format.h"
 #include "frontends/LyXView.h"
 #include "funcrequest.h"
 
@@ -41,7 +38,11 @@ bool Importer::Import(LyXView * lv, string const & filename,
 {
        string const displaypath = MakeDisplayPath(filename);
        ostringstream s1;
+#if USE_BOOST_FORMAT
        s1 << boost::format(_("Importing %1$s...")) % displaypath;
+#else
+       s1 << _("Importing ") << displaypath << _("...");
+#endif
        lv->message(STRCONV(s1.str()));
 
        string const lyxfile = ChangeExtension(filename, ".lyx");
@@ -60,9 +61,15 @@ bool Importer::Import(LyXView * lv, string const & filename,
                        }
                }
                if (loader_format.empty()) {
+#if USE_BOOST_FORMAT
                        Alert::alert(_("Cannot import file"),
                                     boost::io::str(boost::format(_("No information for importing from %1$s"))
                                   % formats.prettyName(format)));
+#else
+                       Alert::alert(_("Cannot import file"),
+                                    _("No information for importing from ")
+                                    + formats.prettyName(format));
+#endif
                        return false;
                }
        } else