]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiAbout.cpp
On Linux show in crash message box the backtrace
[lyx.git] / src / frontends / qt4 / GuiAbout.cpp
index 8a75a538f4a775802495ebdb7522ac2985eeebdd..09834d41f5f9c5b7aaae531bf8afc16536b76a0e 100644 (file)
@@ -23,8 +23,8 @@
 #include "support/Package.h"
 
 #include <QDate>
-#include <QtCore>
-#include <QtGui>
+#include <QFile>
+#include <QTextStream>
 
 using namespace lyx::support;
 using lyx::support::package;
@@ -126,8 +126,8 @@ static QString version()
        out << toqstr(makeDisplayPath(package().user_support().absFileName()));
 #ifdef DEVEL_VERSION
        out << "\n";
-       out << "Qt Version (run-time): " << toqstr(qVersion()) << "\n";
-       out << "Qt Version (compile-time): " << QT_VERSION_STR << "\n";
+       out << toqstr(bformat(_("Qt Version (run-time): %1$s"), from_ascii(qVersion()))) << "\n";
+       out << toqstr(bformat(_("Qt Version (compile-time): %1$s"), from_ascii(QT_VERSION_STR))) << "\n";
 #endif
        return res;
 }
@@ -138,7 +138,8 @@ static QString buildinfo()
        QTextStream out(&res);
        out << "LyX " << lyx_version
                << " (" << lyx_release_date << ")" << endl;
-       out << "Built on " << __DATE__ << ", " << __TIME__ << endl;
+       out << toqstr(bformat(_("Built on %1$s[[date]], %2$s[[time]]"),
+               from_ascii(__DATE__), from_ascii(__TIME__))) << endl;
 
        out << lyx_version_info << endl;
        return res;