From: Vincent van Ravesteijn Date: Sun, 30 Oct 2011 19:52:33 +0000 (+0000) Subject: Use the format's pretty name in the statusmessages X-Git-Tag: 2.1.0beta1~2419 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=05eff0e3440f64420efbe3369baced6ad43eaf95;p=features.git Use the format's pretty name in the statusmessages git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40100 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index b72ab9c1ba..e6fa28dc74 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -531,10 +531,11 @@ QVector 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);