X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FFormat.cpp;h=d639dbfd9fca1b9efe75ef91ac45a06fd5222284;hb=7470305720d7733a27e9c6e5ef13a0774f5d0f77;hp=ee4f7f464b82d3cc3d64bca4915dddb00e3791c4;hpb=195c0bfbad56601608739838e79c8d71ebcf3152;p=lyx.git diff --git a/src/Format.cpp b/src/Format.cpp index ee4f7f464b..d639dbfd9f 100644 --- a/src/Format.cpp +++ b/src/Format.cpp @@ -642,7 +642,7 @@ bool Formats::view(Buffer const & buffer, FileName const & filename, // by the caller (this should be "utility" code) Alert::error(_("Cannot view file"), bformat(_("No information for viewing %1$s"), - prettyName(format_name))); + translateIfPossible(prettyName(format_name)))); return false; } // viewer is 'auto' @@ -746,7 +746,7 @@ bool Formats::edit(Buffer const & buffer, FileName const & filename, // be done by the caller (this should be "utility" code) Alert::error(_("Cannot edit file"), bformat(_("No information for editing %1$s"), - prettyName(format_name))); + translateIfPossible(prettyName(format_name)))); return false; } @@ -827,7 +827,7 @@ FlavorTranslator initFlavorTranslator() f.addPair(OutputParams::LUATEX, "luatex"); f.addPair(OutputParams::PDFLATEX, "pdflatex"); f.addPair(OutputParams::XETEX, "xetex"); - f.addPair(OutputParams::XML, "docbook-xml"); + f.addPair(OutputParams::DOCBOOK5, "docbook-xml"); f.addPair(OutputParams::HTML, "xhtml"); f.addPair(OutputParams::TEXT, "text"); f.addPair(OutputParams::LYX, "lyx");