On 01/14/2010 08:38 AM, Vincent van Ravesteijn - TNW wrote:

    /afs/inria.fr/rocq/home/imara/lasgoutt/dash.lyx is from a different
version of LyX, but the lyx2lyx script failed to convert it.
The last sentence is what I get in a dialog box. Could I get LyX to
tell me that it is a _too_new_ version of the file format?


Alert::error(_("Conversion script failed"),
bformat(_("%1$s is from a different version"
" of LyX, but the lyx2lyx script"
" failed to convert it."),
from_utf8(filename.absFilename())));

return failure;


So yes, I suppose, if lyx2lyx were to return different error codes
depending upon what the problem was.
if (file_format != LYX_FORMAT) {
        [.. Try to convert ..]

        if (file_format>  LYX_FORMAT)
                Alert::error(_("File is newer, and LyX couldn't convert
it."),
        else
                Alert::error(_("File is older, and LyX couldn't convert
it."),
}

Doh....

rh

Reply via email to