]> git.lyx.org Git - features.git/commitdiff
* GuiView: puzzle-constructions like this will make proper translations impossible...
authorJürgen Spitzmüller <spitz@lyx.org>
Sat, 13 Nov 2010 15:47:42 +0000 (15:47 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Sat, 13 Nov 2010 15:47:42 +0000 (15:47 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36284 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index 19482579bc1ebd93af4c4d4958f00b694c5a2827..817f5772519f0ae794315cfdedb33fd3f828a2d4 100644 (file)
@@ -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));
 }