]> git.lyx.org Git - features.git/commitdiff
* buffer.C (readFile): reword error message when lyx2lyx fails.
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 31 Jan 2007 15:27:05 +0000 (15:27 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 31 Jan 2007 15:27:05 +0000 (15:27 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16974 a592a061-630c-0410-9148-cb99ea01b6c8

src/buffer.C

index bdb0821ed230d7190112a5ae61e4c8c935cf955e..9d1281ed77b80625e24f1857c2c271261a03f692 100644 (file)
@@ -685,7 +685,7 @@ Buffer::ReadStatus Buffer::readFile(LyXLex & lex, FileName const & filename,
                FileName const tmpfile(tempName());
                if (tmpfile.empty()) {
                        Alert::error(_("Conversion failed"),
-                                    bformat(_("%1$s is from an earlier"
+                                    bformat(_("%1$s is from a different"
                                              " version of LyX, but a temporary"
                                              " file for converting it could"
                                                            " not be created."),
@@ -695,7 +695,7 @@ Buffer::ReadStatus Buffer::readFile(LyXLex & lex, FileName const & filename,
                FileName const lyx2lyx = libFileSearch("lyx2lyx", "lyx2lyx");
                if (lyx2lyx.empty()) {
                        Alert::error(_("Conversion script not found"),
-                                    bformat(_("%1$s is from an earlier"
+                                    bformat(_("%1$s is from a different"
                                               " version of LyX, but the"
                                               " conversion script lyx2lyx"
                                                            " could not be found."),
@@ -717,7 +717,7 @@ Buffer::ReadStatus Buffer::readFile(LyXLex & lex, FileName const & filename,
                cmd_ret const ret = runCommand(command_str);
                if (ret.first != 0) {
                        Alert::error(_("Conversion script failed"),
-                                    bformat(_("%1$s is from an earlier version"
+                                    bformat(_("%1$s is from a different version"
                                              " of LyX, but the lyx2lyx script"
                                                            " failed to convert it."),
                                              from_utf8(filename.absFilename())));
@@ -1145,8 +1145,8 @@ int Buffer::runChktex()
        busy(true);
 
        // get LaTeX-Filename
-       string const name = getLatexName(false);
        string const path = temppath();
+        string const name = addName(path, getLatexName());
        string const org_path = filePath();
 
        support::Path p(path); // path to LaTeX file