]> git.lyx.org Git - lyx.git/commitdiff
Use the format's pretty name in the statusmessages
authorVincent van Ravesteijn <vfr@lyx.org>
Sun, 30 Oct 2011 19:52:33 +0000 (19:52 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Sun, 30 Oct 2011 19:52:33 +0000 (19:52 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40100 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index b72ab9c1ba8c294a4d77984c8aaf5fed0d2131be..e6fa28dc746d4900e98e48c03a26d92855772987 100644 (file)
@@ -531,10 +531,11 @@ QVector<GuiWorkArea*> GuiView::GuiViewPrivate::guiWorkAreas()
 static void handleExportStatus(GuiView * view, Buffer::ExportStatus status,
        string const & format)
 {
+       docstring const fmt = formats.prettyName(format);
        docstring msg;
        switch (status) {
        case Buffer::ExportSuccess:
-               msg = bformat(_("Successful export to format: %1$s"), from_utf8(format));
+               msg = bformat(_("Successful export to format: %1$s"), fmt);
                break;
        case Buffer::ExportCancel:
                msg = _("Document export cancelled.");
@@ -543,13 +544,13 @@ static void handleExportStatus(GuiView * view, Buffer::ExportStatus status,
        case Buffer::ExportNoPathToFormat:
        case Buffer::ExportTexPathHasSpaces:
        case Buffer::ExportConverterError:
-               msg = bformat(_("Error while exporting format: %1$s"), from_utf8(format));
+               msg = bformat(_("Error while exporting format: %1$s"), fmt);
                break;
        case Buffer::PreviewSuccess:
-               msg = bformat(_("Successful preview of format: %1$s"), from_utf8(format));
+               msg = bformat(_("Successful preview of format: %1$s"), fmt);
                break;
        case Buffer::PreviewError:
-               msg = bformat(_("Error while previewing format: %1$s"), from_utf8(format));
+               msg = bformat(_("Error while previewing format: %1$s"), fmt);
                break;
        }
        view->message(msg);