* GuiAbout.cpp:

- fall back to lyx_release_date, if everything else fails.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28173 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2009-01-15 13:56:40 +00:00
parent 6bb9cf4918
commit a8516f57ee

View File

@ -97,8 +97,12 @@ static QString version()
QLocale loc; QLocale loc;
QString loc_release_date = QString loc_release_date =
loc.toString(release_date(), QLocale::LongFormat); loc.toString(release_date(), QLocale::LongFormat);
if (lyx_release_date == "not released yet") if (loc_release_date.isEmpty()) {
loc_release_date = qt_("not released yet"); 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 = docstring version_date =
bformat(_("LyX Version %1$s\n(%2$s)\n\n"), bformat(_("LyX Version %1$s\n(%2$s)\n\n"),
from_ascii(lyx_version), from_ascii(lyx_version),