mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-06 03:00:43 +00:00
Improve "last use" message on Welcome page to say "today" rather than (-1 days ago).
This commit is contained in:
parent
f491d488b2
commit
a68f6a7c6f
@ -179,6 +179,7 @@ QString Welcome::GenerateCPAPHTML()
|
|||||||
QString daystring;
|
QString daystring;
|
||||||
if (daysto == 1) daystring += tr("last night");
|
if (daysto == 1) daystring += tr("last night");
|
||||||
else if (daysto == 2) daystring += tr("1 day ago");
|
else if (daysto == 2) daystring += tr("1 day ago");
|
||||||
|
else if (daysto == 0) daystring += tr("today");
|
||||||
else daystring += tr("%2 days ago").arg(daysto-1);
|
else daystring += tr("%2 days ago").arg(daysto-1);
|
||||||
|
|
||||||
html += tr("was %1 (on %2)").arg(daystring).arg(date.toString(Qt::SystemLocaleLongDate)) + "<br/>";
|
html += tr("was %1 (on %2)").arg(daystring).arg(date.toString(Qt::SystemLocaleLongDate)) + "<br/>";
|
||||||
|
Loading…
Reference in New Issue
Block a user