From a85ae19bf81db7eaa636b11bf09884d87da189eb Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Sat, 13 Nov 2010 15:47:42 +0000 Subject: [PATCH] * GuiView: puzzle-constructions like this will make proper translations impossible (and it was not even correct English). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36284 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiView.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 19482579bc..817f577251 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -2909,9 +2909,14 @@ docstring GuiView::GuiViewPrivate::runAndDestroy(const T& func, Buffer const * o bool const success = func(format, update_unincluded); delete buffer; busyBuffers.remove(orig); + if (msg == "preview") { + return success + ? bformat(_("Successful preview of format: %1$s"), from_utf8(format)) + : bformat(_("Error while previewing format: %1$s"), from_utf8(format)); + } return success - ? bformat(_("Successful " + msg + " to format: %1$s"), from_utf8(format)) - : bformat(_("Error " + msg + " format: %1$s"), from_utf8(format)); + ? bformat(_("Successful export to format: %1$s"), from_utf8(format)) + : bformat(_("Error while exporting format: %1$s"), from_utf8(format)); } -- 2.39.2