]> git.lyx.org Git - features.git/commitdiff
Translate build version strings
authorVincent van Ravesteijn <vfr@lyx.org>
Mon, 13 May 2013 10:45:59 +0000 (12:45 +0200)
committerVincent van Ravesteijn <vfr@lyx.org>
Mon, 13 May 2013 10:57:21 +0000 (12:57 +0200)
src/LyX.cpp
src/frontends/qt4/GuiAbout.cpp

index f7bc1c7571042f116d4922eacfa37331fa09b857..a8849caf3cdef9ec167461f6246f31743d02c97e 100644 (file)
@@ -1066,7 +1066,8 @@ int parse_version(string const &, string const &, string &)
 {
        cout << "LyX " << lyx_version
               << " (" << lyx_release_date << ")" << endl;
-       cout << "Built on " << __DATE__ << ", " << __TIME__ << endl;
+       cout << to_utf8(bformat(_("Built on %1$s, %2$s"),
+               from_ascii(__DATE__), from_ascii(__TIME__))) << endl;
 
        cout << lyx_version_info << endl;
        exit(0);
index 8a75a538f4a775802495ebdb7522ac2985eeebdd..acabad217bcac2bb4542df8260185219a36b705d 100644 (file)
@@ -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, %2$s"),
+               from_ascii(__DATE__), from_ascii(__TIME__))) << endl;
 
        out << lyx_version_info << endl;
        return res;