mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-12 16:50:39 +00:00
* configure.ac:
- use ISO format for LYX_DATE * GuiAbout.cpp: - make release date translatable. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28174 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1abaab888c
commit
e1240b8e0e
@ -1,7 +1,8 @@
|
||||
dnl Process with autoconf to generate configure script -*- sh -*-
|
||||
|
||||
AC_INIT(LyX,1.6.2svn,[lyx-devel@lists.lyx.org],[lyx])
|
||||
AC_SUBST(LYX_DATE, ["Sat, Dec 13, 2008"])
|
||||
# Use ISO format only. The frontend needs to parse this
|
||||
AC_SUBST(LYX_DATE, ["2008-12-13"])
|
||||
AC_PREREQ(2.52)
|
||||
AC_CONFIG_SRCDIR(src/main.cpp)
|
||||
AC_CONFIG_HEADERS([config.h])
|
||||
|
@ -16,11 +16,15 @@
|
||||
#include "version.h"
|
||||
|
||||
#include "support/filetools.h"
|
||||
#include "support/gettext.h"
|
||||
#include "support/lstrings.h"
|
||||
#include "support/Package.h"
|
||||
|
||||
#include <QDate>
|
||||
#include <QtCore>
|
||||
#include <QtGui>
|
||||
|
||||
using namespace lyx::support;
|
||||
using lyx::support::package;
|
||||
using lyx::support::makeDisplayPath;
|
||||
|
||||
@ -28,6 +32,13 @@ using lyx::support::makeDisplayPath;
|
||||
namespace lyx {
|
||||
namespace frontend {
|
||||
|
||||
|
||||
static QDate release_date()
|
||||
{
|
||||
return QDate::fromString(QString(lyx_release_date), Qt::ISODate);
|
||||
}
|
||||
|
||||
|
||||
static QString credits()
|
||||
{
|
||||
QString res;
|
||||
@ -61,7 +72,11 @@ static QString credits()
|
||||
|
||||
static QString copyright()
|
||||
{
|
||||
return qt_("LyX is Copyright (C) 1995 by Matthias Ettrich,\n1995-2008 LyX Team");
|
||||
QString release_year = release_date().toString("yyyy");
|
||||
docstring copy_message =
|
||||
bformat(_("LyX is Copyright (C) 1995 by Matthias Ettrich,\n1995--%1$s LyX Team"),
|
||||
qstring_to_ucs4(release_year));
|
||||
return toqstr(copy_message);
|
||||
}
|
||||
|
||||
|
||||
@ -79,13 +94,22 @@ static QString disclaimer()
|
||||
|
||||
static QString version()
|
||||
{
|
||||
QLocale loc;
|
||||
QString loc_release_date =
|
||||
loc.toString(release_date(), QLocale::LongFormat);
|
||||
if (loc_release_date.isEmpty()) {
|
||||
if (lyx_release_date == "not released yet")
|
||||
loc_release_date = qt_("not released yet");
|
||||
else
|
||||
loc_release_date = toqstr(lyx_release_date);
|
||||
}
|
||||
docstring version_date =
|
||||
bformat(_("LyX Version %1$s\n(%2$s)\n\n"),
|
||||
from_ascii(lyx_version),
|
||||
qstring_to_ucs4(loc_release_date));
|
||||
QString res;
|
||||
QTextStream out(&res);
|
||||
out << qt_("LyX Version ");
|
||||
out << lyx_version;
|
||||
out << " (";
|
||||
out << lyx_release_date;
|
||||
out << ")\n";
|
||||
out << toqstr(version_date);
|
||||
out << qt_("Library directory: ");
|
||||
out << toqstr(makeDisplayPath(package().system_support().absFilename()));
|
||||
out << "\n";
|
||||
|
@ -73,6 +73,7 @@ What's new
|
||||
- Added LFUN_VC_COMMAND to support customizable user commands
|
||||
for version control.
|
||||
|
||||
|
||||
* WINDOWS INSTALLER
|
||||
|
||||
|
||||
@ -179,6 +180,8 @@ What's new
|
||||
|
||||
- Fix compilation of the modernCV example file.
|
||||
|
||||
- Localize the release date information in Help>About LyX.
|
||||
|
||||
|
||||
* BUILD/INSTALLATION
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user