]> git.lyx.org Git - lyx.git/blobdiff - src/converter.C
Fix working of the spellchecker dialog with ispell when there are no
[lyx.git] / src / converter.C
index c04daf580e6378a5438b9912b8f6aa1b5aecf39c..93e7957730b8b9343248acf3031b447f645bfc94 100644 (file)
@@ -168,7 +168,7 @@ bool Formats::view(Buffer const * buffer, string const & filename,
            format->isChildFormat())
                format = getFormat(format->parentFormat());
        if (!format || format->viewer().empty()) {
-               WriteAlert(_("Can not view file"),
+               WriteAlert(_("Cannot view file"),
                           _("No information for viewing ")
                           + prettyName(format_name));
                           return false;
@@ -177,9 +177,7 @@ bool Formats::view(Buffer const * buffer, string const & filename,
        string command = format->viewer();
 
        if (format_name == "dvi" &&
-           prefixIs(frontStrip(command), "xdvi") &&
            !lyxrc.view_dvi_paper_option.empty()) {
-               
                command += " " + lyxrc.view_dvi_paper_option;
                string paper_size = converters.papersize(buffer);
                if (paper_size == "letter")
@@ -200,7 +198,7 @@ bool Formats::view(Buffer const * buffer, string const & filename,
        int const res = one.startscript(Systemcalls::SystemDontWait, command);
 
        if (res) {
-               WriteAlert(_("Can not view file"),
+               WriteAlert(_("Cannot view file"),
                           _("Error while executing"),
                           command.substr(0, 50));
                return false;
@@ -576,7 +574,7 @@ bool Converters::convert(Buffer const * buffer,
 
        EdgePath edgepath = getPath(from_format, to_format);
        if (edgepath.empty()) {
-               WriteAlert(_("Can not convert file"),
+               WriteAlert(_("Cannot convert file"),
                           _("No information for converting from ")
                           + formats.prettyName(from_format) + _(" to ")
                           + formats.prettyName(to_format));
@@ -670,7 +668,7 @@ bool Converters::convert(Buffer const * buffer,
                                        WriteAlert(_("There were errors during the Build process."),
                                                   _("You should try to fix them."));
                                else
-                                       WriteAlert(_("Can not convert file"),
+                                       WriteAlert(_("Cannot convert file"),
                                                   "Error while executing",
                                                   command.substr(0, 50));
                                return false;